Skip to content

Commit

Permalink
Add support for parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Dec 2, 2024
1 parent d6958e1 commit 283f778
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/2.0/Vendor/EXT_structural_metadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Template for metadata entities. Classes provide a list of property definitions.
Classes are defined as entries in the `schema.classes` dictionary, indexed by class ID. Class IDs must be alphanumeric identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`.
A class may specify a `parent` class, forming a class hierarchy. A class instance contains property values for its class as well as ancestor classes. Classes in a hierarchy cannot have the same property ID. Cyclical inheritance is disallowed.
> **Example:** A "Tree" class, which might describe a table of tree measurements taken in a park. Property definitions are abbreviated here, and introduced in the next section.
>
> ```jsonc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"$ref": "class.property.schema.json"
}
},
"parent": {
"type": "string",
"minLength": 1,
"description": "The parent class ID. The class inherits all properties of its parent class and ancestor classes."
},
"extensions": {},
"extras": {}
}
Expand Down

0 comments on commit 283f778

Please sign in to comment.