Skip to content

Commit

Permalink
Updated the entity schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jnbdz committed Sep 15, 2024
1 parent f124e59 commit 377524f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .schema/entity.schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/AmadlaOrg/hery/master/.schema/entity.schema.json",
"title": "HERY basic configuration properties.",
"title": "HERY Basic Configuration Properties",
"description": "Defines the foundational HERY entity properties. This schema sets the foundational structure for entities in the HERY system, including reserved properties that are crucial for entity identification and referencing within the system.",
"type": "object",
"properties": {
Expand Down Expand Up @@ -32,8 +32,17 @@
},
"_self": {
"type": "object",
"description": "Used to reference the current entity inside another entity, so that there is no need to use _entity to define the entity block. In other words, it is a shorthand for _entity to reference the current entity.",
"additionalProperties": true
"description": "Used to reference the current entity inside another entity.",
"properties": {
"_entity": {
"$ref": "#/$defs/_entity"
},
"_id": {
"$ref": "#/$defs/_id"
}
},
"required": ["_entity"],
"additionalProperties": false
}
}
}

0 comments on commit 377524f

Please sign in to comment.