Skip to content

Commit

Permalink
refactor: use path entity schema
Browse files Browse the repository at this point in the history
  • Loading branch information
azech-hqs committed Sep 5, 2023
1 parent a8ad97a commit 3c2acca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
5 changes: 1 addition & 4 deletions schema/method/categorized_method.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
"title": "categorized method schema",
"allOf": [
{
"$ref": "../system/name.json"
"$ref": "../system/path_entity.json"
},
{
"$ref": "../system/tags.json"
}
],
"properties": {
"path": {
"$ref": "../core/reusable/category_path.json"
},
"units": {
"type": "array",
"items": {
Expand Down
6 changes: 1 addition & 5 deletions schema/method/unit_method.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "unit method schema (base)",
"allOf": [
{
"$ref": "../system/name.json"
"$ref": "../system/path_entity.json"
},
{
"$ref": "../system/tags.json"
Expand All @@ -15,10 +15,6 @@
"description": "Method categories",
"$ref": "../core/reusable/categories.json"
},
"path": {
"description": "URL-like method path, e.g. physical/pw",
"$ref": "../core/reusable/category_path.json"
},
"parameters": {
"description": "Instructive parameters defining the method",
"type": "object"
Expand Down
5 changes: 1 addition & 4 deletions schema/model/model_without_method.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
"title": "model without method schema (base)",
"allOf": [
{
"$ref": "../system/name.json"
"$ref": "../system/path_entity.json"
},
{
"$ref": "../system/tags.json"
}
],
"properties": {
"path": {
"$ref": "../core/reusable/category_path.json"
},
"categories": {
"description": "Model categories",
"$ref": "../core/reusable/categories.json"
Expand Down

0 comments on commit 3c2acca

Please sign in to comment.