Supported Features

JSON Schema

  • status string
    • o: supported
    • x: no supported
    • p: partially

Draft-04

propertystatuson TypeScript
idotype name and using referenced target. Restricted URL value only.
$schemaousing to select schema version
$refpsupported local file and other file reference
titleocomment string
descriptionocomment string
defaultx
multipleOfx
maximumx
exclusiveMaximumx
minimumx
exclusiveMinimumx
maxLengthx
minLengthx
patternx
additionalItemsx
itemsoArray type or Tuple type
maxItemsx
minItemspon using Tuple type definition
uniqueItemsx
maxPropertiesx
minPropertiesx
requiredonon nullable type
additionalPropertiesoif true, add the index signatures
definitionso
propertiesoadd some properties in this type
patternPropertiesx
dependenciesxbut also search the sub schema types
enumoenum type, supported string and integer values
typeoThe type of that property
nullableoThis property is defined by OpenAPI Specification, not in JSON Schema
formatocomment string
allOfp
anyOfp
oneOfpsame as anyOf
notx

Draft-07

defference from Draft-04

propertystatuson TypeScript
$idoreplaces id
$commentocomment string
readOnlyoreadonly property
writeOnlyxTypeScript is not support the writeOnly property
examplesocomment string
containsx
propertyNamesx
constoliteral type
contentMediaTypex
contentEncodingx
ifx
thenx
elsex

OpenAPI

Basically the same as JSON Schema, but it is supported the additional properties as root object in OpenAPI file.

Version 2.0

The base JSON Schema version is Draft-04

additional property
/definitions/*
/parameters/*/schema
/responses/*/schema
/paths/*/parameters/*/schema
/paths/*/(get|put|post|delete|options|head|patch)/parameters/*/schema
/paths/*/(get|put|post|delete|options|head|patch)/responses/*/schema

Version 3.0

The base JSON Schema version is Draft-07

additional property
/components/schemas/*
/components/parameters/*/schema
/components/requestBodies/*/content/“application/json”
/components/requestBodies/*/$ref
/components/responses/*/content/“application/json”
/components/responses/*/$ref
/paths/*/parameters/*/schema
/paths/*/(get|put|post|delete|options|head|patch|trace)/parameters/*/schema
/paths/*/(get|put|post|delete|options|head|patch|trace)/requestBodies/*/content/“application/json”
/paths/*/(get|put|post|delete|options|head|patch|trace)/requestBodies/*/$ref
/paths/*/(get|put|post|delete|options|head|patch|trace)/responses/*/content/“application/json”
/paths/*/(get|put|post|delete|options|head|patch|trace)/responses/*/$ref