Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOF-7506: Core entity schemas #322

Merged
merged 25 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
05cf0db
chore: schemas improvements
k0stik Nov 25, 2024
7893ef5
chore: schemas improvements
k0stik Nov 25, 2024
4f4cf50
chore: has_consistency_check
k0stik Nov 26, 2024
fd565f4
chore: has_consistency_check
k0stik Nov 26, 2024
9a5989c
chore: has_consistency_check
k0stik Nov 26, 2024
1a24dc4
chore: has_consistency_check
k0stik Nov 26, 2024
131d030
chore: entity-reference
k0stik Nov 26, 2024
321230a
chore: entity-reference dist
k0stik Nov 26, 2024
49bc8ae
chore: description schema
k0stik Nov 26, 2024
2687dc4
chore: description schema dist
k0stik Nov 26, 2024
f84dbc2
chore: has_consistency_check fix
k0stik Nov 27, 2024
c1dc9ce
chore: has_consistency_check fix dist
k0stik Nov 27, 2024
9dc1f51
chore: has_consistency_check fix
k0stik Nov 27, 2024
5febbc0
chore: has_consistency_check fix
k0stik Nov 27, 2024
6793620
chore: dist
k0stik Nov 27, 2024
f122d07
chore: dist
k0stik Nov 27, 2024
f822e18
chore: has_consistency_check fix
k0stik Nov 27, 2024
e93243b
chore: has_consistency_check dist
k0stik Nov 27, 2024
0b01a57
chore: has_consistency_check fix
k0stik Nov 27, 2024
aa5d28b
chore: has_consistency_check fix dist
k0stik Nov 27, 2024
131a558
fix has_consistency_check
k0stik Dec 6, 2024
5ed8c15
Merge branch 'dev' into chore/SOF-7506
k0stik Jan 24, 2025
8601494
Merge branch 'dev' of github.com:Exabyte-io/exabyte-materials-json in…
k0stik Jan 24, 2025
043c0de
Merge branch 'chore/SOF-7506' of github.com:Exabyte-io/exabyte-materi…
k0stik Jan 24, 2025
3978bc5
chore: add node v22
k0stik Jan 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading