Class JsonSchemaInputProcessor

Class for processing JSON Schema

Hierarchy

Constructors

Properties

MODELGEN_INFFERED_NAME: string = 'x-modelgen-inferred-name'

Methods

  • 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.

    Parameters

    • input: any

    Returns any

  • Ensure schema name using previous name and new part

    Parameters

    • previousName: undefined | string

      to concatenate with

    • Rest ...newParts: any[]

    Returns string

  • Each 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

    Parameters

    Returns any

Generated using TypeDoc