Skip to content

Instantly share code, notes, and snippets.

@ioggstream
Created October 5, 2021 22:56
Show Gist options
  • Save ioggstream/b3fcde9a56e0b63436753ab6139fbe38 to your computer and use it in GitHub Desktop.
Save ioggstream/b3fcde9a56e0b63436753ab6139fbe38 to your computer and use it in GitHub Desktop.
jsonschema context
{
"@context": {
"@version": 1.1,
"xsd": "http://www.w3.org/2001/XMLSchema#",
"@vocab": "https://www.w3.org/2019/wot/json-schema#",
"id": { "@id": "@id" },
"type": { "@id": "@type" },
"object": "ObjectSchema",
"array": "ArraySchema",
"boolean": "BooleanSchema",
"string": "StringSchema",
"number": "NumberSchema",
"integer": "IntegerSchema",
"null": "NullSchema",
"properties": {
"@container": "@index",
"@index": "propertyName"
},
"items": { "@type": "@vocab" },
"oneOf": { "@type": "@vocab", "@container": "@set" },
"allOf": { "@type": "@vocab", "@container": "@set" },
"anyOf": { "@type": "@vocab", "@container": "@set" },
"minItems": { "@type": "xsd:nonNegativeInteger" },
"maxItems": { "@type": "xsd:nonNegativeInteger" },
"minimum": { "@type": "xsd:decimal" },
"maximum": { "@type": "xsd:decimal" },
"enum": { "@container": "@set", "@type": "@json" },
"enum": { "@container": "@set", "@type": "@json" },
"writeOnly": { "@type": "xsd:boolean" },
"readOnly": { "@type": "xsd:boolean" },
"format": { "@type": "xsd:string" },
"required": { "@type": "xsd:string", "@container": "@set" },
"title": { "@type": "xsd:string" },
"description": { "@type": "xsd:string" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment