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