@ts-common/schema
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @ts-common/schema

Weekly Downloads

0

Version

0.0.5

License

Apache-2.0

Unpacked Size

21.3 kB

Total Files

5

Last publish

Collaborators

  • lirenhe
  • billytrend
  • vladbarosan
  • sergeyshandar