Skip to content

Latest commit

 

History

History
337 lines (148 loc) · 6.44 KB

File metadata and controls

337 lines (148 loc) · 6.44 KB

Home > @codemonger-io/cdk-rest-api-with-spec > JsonSchemaEx

JsonSchemaEx interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Extended aws_apigateway.JsonSchema.

Signature:

export interface JsonSchemaEx extends apigateway.JsonSchema 

Extends: apigateway.JsonSchema

Remarks

Introduces the following new properties,

- example: example value.
- modelRef: reference to another IModel.

Properties

Property

Modifiers

Type

Description

additionalItems?

boolean | JsonSchemaEx

(BETA) (Optional) Extension of additionalItems.

additionalProperties?

boolean | JsonSchemaEx

(BETA) (Optional) Extension of additionalProperties.

allOf?

JsonSchemaEx[]

(BETA) (Optional) Extension of allOf.

anyOf?

JsonSchemaEx[]

(BETA) (Optional) Extension of anyOf.

contains?

JsonSchemaEx | JsonSchemaEx[]

(BETA) (Optional) Extension of contains.

definitions?

{ [k: string]: JsonSchemaEx; }

(BETA) (Optional) Extension of definitions.

dependencies?

{ [k: string]: JsonSchemaEx | string[]; }

(BETA) (Optional) Extension of dependencies.

example?

any

(BETA) (Optional) Example value.

items?

JsonSchemaEx | JsonSchemaEx[]

(BETA) (Optional) Extension of items.

modelRef?

apigateway.IModel

(BETA) (Optional) Reference to another aws_apigateway.IModel.

not?

JsonSchemaEx

(BETA) (Optional) Extension of not.

oneOf?

JsonSchemaEx[]

(BETA) (Optional) Extension of oneOf.

patternProperties?

{ [k: string]: JsonSchemaEx; }

(BETA) (Optional) Extension of patternProperties.

properties?

{ [k: string]: JsonSchemaEx; }

(BETA) (Optional) Extension of properties.

propertyNames?

JsonSchemaEx

(BETA) (Optional) Extension of propertyNames.