This is a hotfix and really only a partial solution as it does not cover all cases.
But it's the best we can do until we find or build a better library to handle references.
Function for processing a JSON Schema input.
Optionaloptions: ProcessorOptionsUnless the schema states one that is not supported we assume its of type JSON Schema
StaticconvertSimplifies a JSON Schema into a common models
to simplify to common model
Optionaloptions: ProcessorOptionsStaticconvertSimplifies a JSON Schema into a common models
to simplify to common model
Optionaloptions: ProcessorOptionsStaticreflectEach schema must have a name, so when later interpreted, the model have the most accurate model name.
Reflect name from given schema and save it to x-modelgen-inferred-name extension.
This reflects all the common keywords that are shared between draft-4, draft-7 and Swagger 2.0 Schema
to process
is a aggregator of previous used names
is a set of schema already seen and named
Optionalname: stringto infer
OptionalisRoot: booleanindicates if performed schema is a root schema
Class for processing JSON Schema