From 3c2accaf86ef77d0cb51f8b3a6a7790e76c98e1d Mon Sep 17 00:00:00 2001 From: Alexander Zech Date: Tue, 5 Sep 2023 11:19:16 -0700 Subject: [PATCH] refactor: use path entity schema --- schema/method/categorized_method.json | 5 +---- schema/method/unit_method.json | 6 +----- schema/model/model_without_method.json | 5 +---- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/schema/method/categorized_method.json b/schema/method/categorized_method.json index 177bf4710..72bafb6a6 100644 --- a/schema/method/categorized_method.json +++ b/schema/method/categorized_method.json @@ -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": { diff --git a/schema/method/unit_method.json b/schema/method/unit_method.json index 413078901..6a18be5a7 100644 --- a/schema/method/unit_method.json +++ b/schema/method/unit_method.json @@ -4,7 +4,7 @@ "title": "unit method schema (base)", "allOf": [ { - "$ref": "../system/name.json" + "$ref": "../system/path_entity.json" }, { "$ref": "../system/tags.json" @@ -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" diff --git a/schema/model/model_without_method.json b/schema/model/model_without_method.json index b50bc4df0..4017442ee 100644 --- a/schema/model/model_without_method.json +++ b/schema/model/model_without_method.json @@ -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"