From 546556d3c8bb125810d8be86688f55187f8c3bbf Mon Sep 17 00:00:00 2001 From: Supercip971 Date: Mon, 29 May 2023 13:42:19 -0400 Subject: [PATCH 1/2] fix: include the requirement of having a schema in the different manifest. --- latest/cutekit.manifest.component | 3 ++- latest/cutekit.manifest.project | 3 +++ latest/cutekit.manifest.target | 3 +++ stable/cutekit.manifest.component.v1 | 3 ++- stable/cutekit.manifest.project.v1 | 3 +++ stable/cutekit.manifest.target.v1 | 3 +++ 6 files changed, 16 insertions(+), 2 deletions(-) diff --git a/latest/cutekit.manifest.component b/latest/cutekit.manifest.component index db52db8..a1b927b 100644 --- a/latest/cutekit.manifest.component +++ b/latest/cutekit.manifest.component @@ -5,7 +5,8 @@ "type": "object", "required": [ "id", - "type" + "type", + "$schema" ], "additionalProperties": false, "properties": { diff --git a/latest/cutekit.manifest.project b/latest/cutekit.manifest.project index 97394cc..17822c9 100644 --- a/latest/cutekit.manifest.project +++ b/latest/cutekit.manifest.project @@ -3,6 +3,9 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "A representation of a component project for CuteKit", "type": "object", + "required": [ + "$schema" + ], "additionalProperties": false, "properties": { "$schema": { diff --git a/latest/cutekit.manifest.target b/latest/cutekit.manifest.target index 24549db..024b6d2 100644 --- a/latest/cutekit.manifest.target +++ b/latest/cutekit.manifest.target @@ -4,6 +4,9 @@ "description": "A representation of a target manifest for CuteKit", "type": "object", "additionalProperties": false, + "required": [ + "$schema" + ], "properties": { "$schema": { "description": "The schema that this manifest conforms to", diff --git a/stable/cutekit.manifest.component.v1 b/stable/cutekit.manifest.component.v1 index db52db8..a1b927b 100644 --- a/stable/cutekit.manifest.component.v1 +++ b/stable/cutekit.manifest.component.v1 @@ -5,7 +5,8 @@ "type": "object", "required": [ "id", - "type" + "type", + "$schema" ], "additionalProperties": false, "properties": { diff --git a/stable/cutekit.manifest.project.v1 b/stable/cutekit.manifest.project.v1 index 97394cc..17822c9 100644 --- a/stable/cutekit.manifest.project.v1 +++ b/stable/cutekit.manifest.project.v1 @@ -3,6 +3,9 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "A representation of a component project for CuteKit", "type": "object", + "required": [ + "$schema" + ], "additionalProperties": false, "properties": { "$schema": { diff --git a/stable/cutekit.manifest.target.v1 b/stable/cutekit.manifest.target.v1 index 24549db..024b6d2 100644 --- a/stable/cutekit.manifest.target.v1 +++ b/stable/cutekit.manifest.target.v1 @@ -4,6 +4,9 @@ "description": "A representation of a target manifest for CuteKit", "type": "object", "additionalProperties": false, + "required": [ + "$schema" + ], "properties": { "$schema": { "description": "The schema that this manifest conforms to", From 560f143e3f053ee350bef81b133d5bb1460be5c2 Mon Sep 17 00:00:00 2001 From: Supercip971 Date: Mon, 29 May 2023 13:52:02 -0400 Subject: [PATCH 2/2] feat: force the value of the $schema --- latest/cutekit.manifest.component | 4 ++-- latest/cutekit.manifest.project | 4 ++-- latest/cutekit.manifest.target | 4 ++-- stable/cutekit.manifest.component.v1 | 2 +- stable/cutekit.manifest.project.v1 | 2 +- stable/cutekit.manifest.target.v1 | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/latest/cutekit.manifest.component b/latest/cutekit.manifest.component index a1b927b..96b71d2 100644 --- a/latest/cutekit.manifest.component +++ b/latest/cutekit.manifest.component @@ -1,5 +1,5 @@ { - "$id": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", + "$id": "https://schemas.cute.engineering/stable/cutekit.manifest.component", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "A representation of a component manifest for CuteKit", "type": "object", @@ -12,7 +12,7 @@ "properties": { "$schema": { "description": "The schema that this manifest conforms to", - "type": "string" + "const": "https://schemas.cute.engineering/stable/cutekit.manifest.component" }, "id": { "description": "The unique identifier for this manifest", diff --git a/latest/cutekit.manifest.project b/latest/cutekit.manifest.project index 17822c9..0b90fd7 100644 --- a/latest/cutekit.manifest.project +++ b/latest/cutekit.manifest.project @@ -1,5 +1,5 @@ { - "$id": "https://schemas.cute.engineering/stable/cutekit.manifest.project.v1", + "$id": "https://schemas.cute.engineering/stable/cutekit.manifest.project", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "A representation of a component project for CuteKit", "type": "object", @@ -10,7 +10,7 @@ "properties": { "$schema": { "description": "The schema that this manifest conforms to", - "type": "string" + "const": "https://schemas.cute.engineering/stable/cutekit.manifest.project" }, "id": { "description": "The unique identifier for this manifest", diff --git a/latest/cutekit.manifest.target b/latest/cutekit.manifest.target index 024b6d2..fac421e 100644 --- a/latest/cutekit.manifest.target +++ b/latest/cutekit.manifest.target @@ -1,5 +1,5 @@ { - "$id": "https://schemas.cute.engineering/stable/cutekit.manifest.target.v1", + "$id": "https://schemas.cute.engineering/stable/cutekit.manifest.target", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "A representation of a target manifest for CuteKit", "type": "object", @@ -10,7 +10,7 @@ "properties": { "$schema": { "description": "The schema that this manifest conforms to", - "type": "string" + "const": "https://schemas.cute.engineering/stable/cutekit.manifest.target" }, "id": { "description": "The unique identifier for this manifest", diff --git a/stable/cutekit.manifest.component.v1 b/stable/cutekit.manifest.component.v1 index a1b927b..5ae39c7 100644 --- a/stable/cutekit.manifest.component.v1 +++ b/stable/cutekit.manifest.component.v1 @@ -12,7 +12,7 @@ "properties": { "$schema": { "description": "The schema that this manifest conforms to", - "type": "string" + "const": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1" }, "id": { "description": "The unique identifier for this manifest", diff --git a/stable/cutekit.manifest.project.v1 b/stable/cutekit.manifest.project.v1 index 17822c9..4c6af68 100644 --- a/stable/cutekit.manifest.project.v1 +++ b/stable/cutekit.manifest.project.v1 @@ -10,7 +10,7 @@ "properties": { "$schema": { "description": "The schema that this manifest conforms to", - "type": "string" + "const": "https://schemas.cute.engineering/stable/cutekit.manifest.project.v1" }, "id": { "description": "The unique identifier for this manifest", diff --git a/stable/cutekit.manifest.target.v1 b/stable/cutekit.manifest.target.v1 index 024b6d2..98bddb8 100644 --- a/stable/cutekit.manifest.target.v1 +++ b/stable/cutekit.manifest.target.v1 @@ -10,7 +10,7 @@ "properties": { "$schema": { "description": "The schema that this manifest conforms to", - "type": "string" + "const": "https://schemas.cute.engineering/stable/cutekit.manifest.target.v1" }, "id": { "description": "The unique identifier for this manifest",