Skip to content

Commit

Permalink
Add more details of the definition schema
Browse files Browse the repository at this point in the history
  • Loading branch information
m-linner-ericsson committed Oct 15, 2024
1 parent 88a4d0b commit 46b96de
Showing 1 changed file with 86 additions and 12 deletions.
98 changes: 86 additions & 12 deletions definition_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,104 @@
"_abbrev": {
"type": "string"
},
"_examples": {
"type": "array"
},
"_history": {
"type": "array"
},
"_links": {
"type": "object"
},
"_name": {
"type": "string"
},
"_version": {
"type": "string"
},
"properties": {
"type": "object"
},
"additionalProperties": {
"type": "boolean"
},
"_format": {
"type": "string"
},
"_examples": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri-reference"
}
},
"required": [
"title",
"url"
],
"additionalProperties": false
}
},
"_history": {
"type": "array",
"items": {
"type": "object",
"properties": {
"version": {
"type": "string"
},
"introduced_in": {
"type": "string"
},
"changes": {
"type": "string"
}
},
"required": [
"version"
]
}
},
"_links": {
"type": "object",
"patternProperties": {
"^[A-Z_]+$": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"required": {
"type": "boolean"
},
"multiple": {
"type": "boolean"
},
"targets": {
"type": "object",
"properties": {
"any_type": {
"type": "boolean"
},
"types": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"any_type",
"types"
]
}
},
"required": [
"description",
"required",
"multiple",
"targets"
]
}
}
},
"properties": {
"type": "object"
},
"definitions": {
"$comment": "\"definitions\" has been replaced by \"$defs\".",
"type": "object",
Expand Down

0 comments on commit 46b96de

Please sign in to comment.