0.0.5 • Published 7 years ago

@ts-common/schema v0.0.5

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
7 years ago

JSON-Schema

JSON-Schema API

Notes

additionalProperties

https://github.com/OAI/OpenAPI-Specification/pull/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

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago