| 1 |
$schema: "https://json-schema.org/draft/2020-12/schema" |
| 2 |
$id: "https://schemas.optimade.org/meta/v1.2/optimade/standard_definition" |
| 3 |
title: "OPTIMADE standard definition schema" |
| 4 |
type: object |
| 5 |
allOf: |
| 6 |
- $ref: "#/$defs/standard_definition_field" |
| 7 |
- required: ["$id", "$schema"] |
| 8 |
$$inherit: "entrytype_definition" |
| 9 |
$$keep: ["$defs"] |
| 10 |
$defs: |
| 11 |
id_field: |
| 12 |
$$inherit: "/v1.2/common/id_field" |
| 13 |
standard_definition_field: |
| 14 |
type: object |
| 15 |
additionalProperties: false |
| 16 |
required: ["x-optimade-definition", "title", "entrytypes"] |
| 17 |
properties: |
| 18 |
"$id": |
| 19 |
$ref: "#/$defs/id_field" |
| 20 |
"$schema": |
| 21 |
type: string |
| 22 |
title: |
| 23 |
type: string |
| 24 |
description: |
| 25 |
type: string |
| 26 |
x-optimade-definition: |
| 27 |
$$inherit: "x-optimade-definition-field" |
| 28 |
properties: |
| 29 |
kind: |
| 30 |
const: "standard" |
| 31 |
entrytypes: |
| 32 |
type: object |
| 33 |
additionalProperties: |
| 34 |
$ref: "#/$defs/entrytype_definition_field" |