0.0.5 • Published 5 years ago

@ts-common/schema v0.0.5

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 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

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago