Skip to content

Commit

Permalink
Merge pull request #322 from Exabyte-io/chore/SOF-7506
Browse files Browse the repository at this point in the history
SOF-7506: Core entity schemas
  • Loading branch information
k0stik authored Jan 27, 2025
2 parents 42140a4 + 3978bc5 commit a852075
Show file tree
Hide file tree
Showing 156 changed files with 6,116 additions and 17,037 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
matrix:
node-version:
- 20.x
- 22.x

steps:
- name: Checkout this repository
Expand Down
3 changes: 3 additions & 0 deletions dist/js/schema/core/reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "entity reference schema",
"type": "object",
"required": [
"_id"
],
"properties": {
"_id": {
"description": "entity identity",
Expand Down
3 changes: 3 additions & 0 deletions dist/js/schema/core/reference/modeling.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "entity reference schema",
"type": "object",
"required": [
"_id"
],
"properties": {
"_id": {
"description": "entity identity",
Expand Down
3 changes: 3 additions & 0 deletions dist/js/schema/core/reference/modeling/exabyte.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "entity reference schema",
"type": "object",
"required": [
"_id"
],
"properties": {
"_id": {
"description": "entity identity",
Expand Down
41 changes: 0 additions & 41 deletions dist/js/schema/in_memory_entity/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,6 @@
"systemName": {
"type": "string"
},
"consistencyChecks": {
"type": "array",
"items": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "consistency check",
"type": "object",
"description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
"required": [
"key",
"name",
"severity",
"message"
],
"properties": {
"key": {
"type": "string",
"description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
},
"name": {
"enum": [
"default",
"atomsTooClose",
"atomsOverlap"
],
"description": "Name of the consistency check that is performed, which is listed in an enum."
},
"severity": {
"enum": [
"info",
"warning",
"error"
],
"description": "Severity level of the problem, which is used in UI to differentiate."
},
"message": {
"type": "string",
"description": "Message generated by the consistency check describing the problem."
}
}
}
},
"schemaVersion": {
"description": "entity's schema version. Used to distinct between different schemas.",
"type": "string",
Expand Down
41 changes: 0 additions & 41 deletions dist/js/schema/in_memory_entity/defaultable.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,6 @@
"systemName": {
"type": "string"
},
"consistencyChecks": {
"type": "array",
"items": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "consistency check",
"type": "object",
"description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
"required": [
"key",
"name",
"severity",
"message"
],
"properties": {
"key": {
"type": "string",
"description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
},
"name": {
"enum": [
"default",
"atomsTooClose",
"atomsOverlap"
],
"description": "Name of the consistency check that is performed, which is listed in an enum."
},
"severity": {
"enum": [
"info",
"warning",
"error"
],
"description": "Severity level of the problem, which is used in UI to differentiate."
},
"message": {
"type": "string",
"description": "Message generated by the consistency check describing the problem."
}
}
}
},
"schemaVersion": {
"description": "entity's schema version. Used to distinct between different schemas.",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"$id": "in-memory-entity/has-consistency-check-has-metadata-named-defaultable",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "has consistency check has metadata named defaultable in-memory entity schema",
"type": "object",
"description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
"properties": {
"_id": {
"description": "entity identity",
"type": "string"
},
"slug": {
"description": "entity slug",
"type": "string"
},
"systemName": {
"type": "string"
},
"schemaVersion": {
"description": "entity's schema version. Used to distinct between different schemas.",
"type": "string",
"default": "2022.8.16"
},
"name": {
"description": "entity name",
"type": "string"
},
"isDefault": {
"description": "Identifies that entity is defaultable",
"type": "boolean",
"default": false
},
"metadata": {
"type": "object"
},
"consistencyChecks": {
"type": "array",
"items": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "consistency check",
"type": "object",
"description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
"required": [
"key",
"name",
"severity",
"message"
],
"properties": {
"key": {
"type": "string",
"description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
},
"name": {
"type": "string",
"description": "Name of the consistency check that is performed, which is listed in an enum."
},
"severity": {
"enum": [
"info",
"warning",
"error"
],
"description": "Severity level of the problem, which is used in UI to differentiate."
},
"message": {
"type": "string",
"description": "Message generated by the consistency check describing the problem."
}
}
}
}
}
}
41 changes: 0 additions & 41 deletions dist/js/schema/in_memory_entity/named.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,6 @@
"systemName": {
"type": "string"
},
"consistencyChecks": {
"type": "array",
"items": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "consistency check",
"type": "object",
"description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
"required": [
"key",
"name",
"severity",
"message"
],
"properties": {
"key": {
"type": "string",
"description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
},
"name": {
"enum": [
"default",
"atomsTooClose",
"atomsOverlap"
],
"description": "Name of the consistency check that is performed, which is listed in an enum."
},
"severity": {
"enum": [
"info",
"warning",
"error"
],
"description": "Severity level of the problem, which is used in UI to differentiate."
},
"message": {
"type": "string",
"description": "Message generated by the consistency check describing the problem."
}
}
}
},
"schemaVersion": {
"description": "entity's schema version. Used to distinct between different schemas.",
"type": "string",
Expand Down
41 changes: 0 additions & 41 deletions dist/js/schema/in_memory_entity/named_defaultable.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,6 @@
"systemName": {
"type": "string"
},
"consistencyChecks": {
"type": "array",
"items": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "consistency check",
"type": "object",
"description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
"required": [
"key",
"name",
"severity",
"message"
],
"properties": {
"key": {
"type": "string",
"description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
},
"name": {
"enum": [
"default",
"atomsTooClose",
"atomsOverlap"
],
"description": "Name of the consistency check that is performed, which is listed in an enum."
},
"severity": {
"enum": [
"info",
"warning",
"error"
],
"description": "Severity level of the problem, which is used in UI to differentiate."
},
"message": {
"type": "string",
"description": "Message generated by the consistency check describing the problem."
}
}
}
},
"schemaVersion": {
"description": "entity's schema version. Used to distinct between different schemas.",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,6 @@
"systemName": {
"type": "string"
},
"consistencyChecks": {
"type": "array",
"items": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "consistency check",
"type": "object",
"description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
"required": [
"key",
"name",
"severity",
"message"
],
"properties": {
"key": {
"type": "string",
"description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
},
"name": {
"enum": [
"default",
"atomsTooClose",
"atomsOverlap"
],
"description": "Name of the consistency check that is performed, which is listed in an enum."
},
"severity": {
"enum": [
"info",
"warning",
"error"
],
"description": "Severity level of the problem, which is used in UI to differentiate."
},
"message": {
"type": "string",
"description": "Message generated by the consistency check describing the problem."
}
}
}
},
"schemaVersion": {
"description": "entity's schema version. Used to distinct between different schemas.",
"type": "string",
Expand Down
Loading

0 comments on commit a852075

Please sign in to comment.