From 26181f1d2f6896fcb9160b0b7965316ca66a9f3a Mon Sep 17 00:00:00 2001 From: Jan Range Date: Fri, 14 Jun 2024 10:40:28 +0200 Subject: [PATCH] add `id` for unit --- docs/types/unit-definition.md | 5 +++++ .../unit-definition-internal.json | 16 ++++++++++++++++ types/unit-definition/unit-definition.json | 5 +++++ types/unit-definition/unit-definition.md | 4 ++++ types/unit-definition/unit-definition.xsd | 7 +++++++ 5 files changed, 37 insertions(+) diff --git a/docs/types/unit-definition.md b/docs/types/unit-definition.md index 2162d75..83dc4ae 100644 --- a/docs/types/unit-definition.md +++ b/docs/types/unit-definition.md @@ -23,6 +23,11 @@ This page provides comprehensive information about the structure and components ### UnitDefinition Represents a unit definition that is based on the SI unit system. +__id__ `string` + +- Unique identifier of the unit definition. + + __name__ `string` - Common name of the unit definition. diff --git a/types/unit-definition/unit-definition-internal.json b/types/unit-definition/unit-definition-internal.json index f167495..c36b046 100644 --- a/types/unit-definition/unit-definition-internal.json +++ b/types/unit-definition/unit-definition-internal.json @@ -4,6 +4,22 @@ { "name": "UnitDefinition", "attributes": [ + { + "name": "id", + "multiple": false, + "is_id": false, + "dtypes": [ + "string" + ], + "docstring": "Unique identifier of the unit definition.", + "options": [], + "term": null, + "required": false, + "xml": { + "is_attr": true, + "name": "id" + } + }, { "name": "name", "multiple": false, diff --git a/types/unit-definition/unit-definition.json b/types/unit-definition/unit-definition.json index cad46b6..0110236 100644 --- a/types/unit-definition/unit-definition.json +++ b/types/unit-definition/unit-definition.json @@ -3,6 +3,11 @@ "title": "UnitDefinition", "type": "object", "properties": { + "id": { + "title": "id", + "description": "Unique identifier of the unit definition.", + "type": "string" + }, "name": { "title": "name", "description": "Common name of the unit definition.", diff --git a/types/unit-definition/unit-definition.md b/types/unit-definition/unit-definition.md index c464f0d..5e34f54 100644 --- a/types/unit-definition/unit-definition.md +++ b/types/unit-definition/unit-definition.md @@ -12,6 +12,10 @@ This data model implements a set of SI units for the representation of physical Represents a unit definition that is based on the SI unit system. +- id + - Type: string + - Description: Unique identifier of the unit definition. + - XML: @id - name - Type: string - Description: Common name of the unit definition. diff --git a/types/unit-definition/unit-definition.xsd b/types/unit-definition/unit-definition.xsd index 4a48f62..38715e2 100644 --- a/types/unit-definition/unit-definition.xsd +++ b/types/unit-definition/unit-definition.xsd @@ -21,6 +21,13 @@ + + + + Unique identifier of the unit definition. + + +