-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxcert-schema.json
1 lines (1 loc) · 1.67 KB
/
xcert-schema.json
1
{"$schema":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"stringSchema":{"type":"object","properties":{"type":{"type":"string","enum":["string"]}}},"numberSchema":{"type":"object","properties":{"type":{"type":"string","enum":["number"]}}},"booleanSchema":{"type":"object","properties":{"type":{"type":"string","enum":["boolean"]}}},"objectSchema":{"type":"object","properties":{"type":{"type":"string","enum":["object"]},"properties":{"patternProperties":{"^.*$":{"anyOf":[{"$ref":"#/definitions/objectSchema"},{"$ref":"#/definitions/arraySchema"},{"$ref":"#/definitions/stringSchema"},{"$ref":"#/definitions/numberSchema"},{"$ref":"#/definitions/booleanSchema"}]}}}}},"arraySchema":{"type":"object","properties":{"type":{"type":"string","enum":["array"]},"items":{"anyOf":[{"$ref":"#/definitions/objectSchema"},{"$ref":"#/definitions/stringSchema"},{"$ref":"#/definitions/numberSchema"},{"$ref":"#/definitions/booleanSchema"}]}}},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]}},"type":["object","boolean"],"properties":{"$schema":{"type":"string","format":"uri"},"$evidence":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["object"]},"items":{"anyOf":[{"$ref":"#/definitions/objectSchema"},{"$ref":"#/definitions/stringSchema"},{"$ref":"#/definitions/numberSchema"},{"$ref":"#/definitions/booleanSchema"}]},"properties":{"patternProperties":{"^.*$":{"anyOf":[{"$ref":"#/definitions/objectSchema"},{"$ref":"#/definitions/arraySchema"},{"$ref":"#/definitions/stringSchema"},{"$ref":"#/definitions/numberSchema"},{"$ref":"#/definitions/booleanSchema"}]}}}}}