Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 904 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 904 Bytes

JSON-Schema

JSON-Schema API

Notes

additionalProperties

OAI/OpenAPI-Specification#1548

A simplified version of OpenAPI can introduce a global configuration field additionalProperties. A strict version of OpenAPI should require the additionalProperties property if type is object.

Default values

if Schema defines a default value then a validation step may produce a value of type which has no undefined values. For example

interface A {
    a?: string
}

transforms into

interface A {
    a: string
}

Multi API versions in one file