Skip to content

Commit

Permalink
add id for unit
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jun 14, 2024
1 parent d6d61c7 commit 26181f1
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/types/unit-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
16 changes: 16 additions & 0 deletions types/unit-definition/unit-definition-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions types/unit-definition/unit-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
4 changes: 4 additions & 0 deletions types/unit-definition/unit-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 7 additions & 0 deletions types/unit-definition/unit-definition.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string">
<xs:annotation>
<xs:documentation>
Unique identifier of the unit definition.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="name" type="xs:string">
<xs:annotation>
<xs:documentation>
Expand Down

0 comments on commit 26181f1

Please sign in to comment.