Repository navigation
Expand file tree
/
Copy pathapi.json
More file actions
35 lines (19 loc) · 1.56 KB
/
Copy pathapi.json
File metadata and controls
35 lines (19 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "dataasee:api?response=api",
"title": "DatAasee API Endpoint Response", "description": "The api endpoint returns either the DatAasee OpenAPI specification, a JSON schema, or a JSON:API error.",
"type": "object", "oneOf": [ { "required": ["openapi", "info", "servers", "components", "tags", "paths"] },
{ "required": ["$schema", "$id", "title", "type"] },
{ "required": ["errors", "meta", "links"] } ], "properties": {
"errors": { "type": "array", "description": "See: https://jsonapi.org/format/#document-top-level", "minItems": 1,
"items": { "type": "object", "description": "See: https://jsonapi.org/format/#error-objects", "required": ["title", "detail"], "properties": {
"title": { "type": "string" },
"detail": { "type": "string" },
"links": { "type": "object",
"additionalProperties": { "type": "string", "format": "uri" } } } } },
"meta": { "type": "object", "description": "See: https://jsonapi.org/format/#document-meta", "required": ["name", "version"], "properties": {
"name": { "type": "string", "const": "DatAasee" },
"version": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$" } } },
"links": { "type": "object", "description": "See: https://jsonapi.org/format/#document-links", "required": ["self", "describedby"], "properties": {
"self": { "type": "string", "format": "uri" },
"describedby": { "type": "string", "format": "uri" } } } }
}