Modelina
    Preparing search index...

    Class OpenapiV3Schema

    OpenAPI 3.0 -> 3.0.4 schema model

    Based on Draft 6, but with restricted keywords and definitions Modifications

    • type, cannot be an array nor contain 'null'

    Restrictions (keywords not allowed)

    • patternProperties
    • not

    https://swagger.io/specification/#schema-object

    Indexable

    • [k: string]: any
    Index

    Constructors

    Properties

    $id?: string
    $ref?: string
    $schema?: string
    additionalItems?: boolean | OpenapiV3Schema
    additionalProperties?: boolean | OpenapiV3Schema
    allOf?: (boolean | OpenapiV3Schema)[]
    anyOf?: (boolean | OpenapiV3Schema)[]
    const?: any
    contains?: boolean | OpenapiV3Schema
    contentEncoding?: string
    contentMediaType?: string
    default?: any
    definitions?: { [key: string]: boolean | OpenapiV3Schema }
    dependencies?: { [key: string]: boolean | string[] | OpenapiV3Schema }
    deprecated?: boolean
    description?: string
    discriminator?: OpenapiV3Discriminator
    enum?: any[]
    example?: any
    examples?: any
    exclusiveMaximum?: number | boolean
    exclusiveMinimum?: number | boolean
    format?: string
    items?: boolean | OpenapiV3Schema | OpenapiV3Schema[]
    maximum?: number
    maxItems?: number
    maxLength?: number
    maxProperties?: number
    minimum?: number
    minItems?: number
    minLength?: number
    minProperties?: number
    multipleOf?: number
    nullable?: boolean
    oneOf?: (boolean | OpenapiV3Schema)[]
    pattern?: string
    properties?: { [key: string]: boolean | OpenapiV3Schema }
    propertyNames?: boolean | OpenapiV3Schema
    readOnly?: boolean
    required?: string[]
    title?: string
    type?: string | string[]
    uniqueItems?: boolean
    writeOnly?: boolean

    Methods