From 3e1f7a883e17a8be7b0311bfd781c2fdde1eac37 Mon Sep 17 00:00:00 2001 From: antpb Date: Fri, 25 Oct 2024 03:17:59 -0500 Subject: [PATCH 1/2] removes description as it should be in sections and renames specification-version and specification-source for consistency with other props --- plugins/specification/1.0/README.md | 5 ++--- plugins/specification/1.0/examples/full.json | 5 ++--- plugins/specification/1.0/examples/minimal.json | 12 +++++++++--- .../specification/1.0/schema/plugin.schema.json | 16 ++++++---------- .../1.0/schema/plugin.sections.schema.json | 3 +++ 5 files changed, 22 insertions(+), 19 deletions(-) diff --git a/plugins/specification/1.0/README.md b/plugins/specification/1.0/README.md index bd69a57..776ee51 100644 --- a/plugins/specification/1.0/README.md +++ b/plugins/specification/1.0/README.md @@ -55,7 +55,6 @@ This specification allows for the standardization of metadata for WordPress plug "screenshots": "" }, "short_description": "A WordPress plugin for drag and drop 3D content creation compatible with most XR devices.", - "description": "A WordPress plugin for publishing XR content with support for WebXR and popular glTF Extensions.", "download_link": "https://updater.sxp.digital/xr-publisher.zip", "screenshots": [], "tags": { @@ -87,8 +86,8 @@ This specification allows for the standardization of metadata for WordPress plug "preview_link": "https://xrpublisher.com/demo", "repository_url": "https://github.com/antpb/xr-publisher", "spec_meta": { - "specification-version": "1.0", - "specification-source": "aspiprepress" + "specification_version": "1.0", + "specification_source": "aspiprepress" } } ``` diff --git a/plugins/specification/1.0/examples/full.json b/plugins/specification/1.0/examples/full.json index 654b329..b35ead0 100644 --- a/plugins/specification/1.0/examples/full.json +++ b/plugins/specification/1.0/examples/full.json @@ -33,7 +33,6 @@ "screenshots": "" }, "short_description": "A WordPress plugin for drag and drop 3D content creation compatible with most XR devices.", - "description": "A WordPress plugin for publishing XR content with support for WebXR and popular glTF Extensions.", "download_link": "https://updater.sxp.digital/xr-publisher.zip", "screenshots": [], "tags": { @@ -65,7 +64,7 @@ "preview_link": "https://xrpublisher.com/demo", "repository_url": "https://github.com/antpb/xr-publisher", "spec_meta": { - "specification-version": "1.0", - "specification-source": "aspiprepress" + "specification_version": "1.0", + "specification_source": "aspiprepress" } } \ No newline at end of file diff --git a/plugins/specification/1.0/examples/minimal.json b/plugins/specification/1.0/examples/minimal.json index 1d1a111..2869b95 100644 --- a/plugins/specification/1.0/examples/minimal.json +++ b/plugins/specification/1.0/examples/minimal.json @@ -9,10 +9,16 @@ "last_updated": "2024-10-09 12:00pm GMT", "added": "2024-10-09", "short_description": "A WordPress plugin for drag and drop 3D content creation compatible with most XR devices.", - "description": "A WordPress plugin for publishing XR content with support for WebXR and popular glTF Extensions.", + "sections": { + "description": "A WordPress plugin for publishing XR content with support for WebXR and popular glTF Extensions.", + "installation": "", + "changelog": "", + "faq": "", + "screenshots": "" + }, "download_link": "https://updater.sxp.digital/xr-publisher.zip", "spec_meta": { - "specification-version": "1.0", - "specification-source": "aspiprepress" + "specification_version": "1.0", + "specification_source": "aspiprepress" } } \ No newline at end of file diff --git a/plugins/specification/1.0/schema/plugin.schema.json b/plugins/specification/1.0/schema/plugin.schema.json index fea5eaf..ae0f20d 100644 --- a/plugins/specification/1.0/schema/plugin.schema.json +++ b/plugins/specification/1.0/schema/plugin.schema.json @@ -116,10 +116,6 @@ "type": "string", "maxLength": 150 }, - "description": { - "type": "string", - "contentMediaType": "text/html" - }, "download_link": { "$ref": "#/$defs/uriString" }, @@ -242,19 +238,19 @@ "spec_meta": { "type": "object", "properties": { - "specification-version": { + "specification_version": { "type": "string", "pattern": "^\\d+\\.\\d+(\\.\\d+)?$", "default": "1.0" }, - "specification-source": { + "specification_source": { "type": "string", "const": "aspiprepress" } }, "required": [ - "specification-version", - "specification-source" + "specification_version", + "specification_source" ], "additionalProperties": false } @@ -270,8 +266,8 @@ "last_updated", "added", "short_description", - "description", - "download_link" + "download_link", + "sections" ], "additionalProperties": false } \ No newline at end of file diff --git a/plugins/specification/1.0/schema/plugin.sections.schema.json b/plugins/specification/1.0/schema/plugin.sections.schema.json index 9d2c23a..6d89b25 100644 --- a/plugins/specification/1.0/schema/plugin.sections.schema.json +++ b/plugins/specification/1.0/schema/plugin.sections.schema.json @@ -29,5 +29,8 @@ "contentMediaType": "text/html" } }, + "required": [ + "description" + ], "additionalProperties": false } \ No newline at end of file From 23efb70cf7363b0a08151aac008f4606d3ed1a44 Mon Sep 17 00:00:00 2001 From: antpb Date: Fri, 25 Oct 2024 03:40:03 -0500 Subject: [PATCH 2/2] add banners in example and fix constant --- plugins/specification/1.0/examples/full.json | 6 +++++- plugins/specification/1.0/schema/plugin.schema.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/specification/1.0/examples/full.json b/plugins/specification/1.0/examples/full.json index b35ead0..d0cd7f3 100644 --- a/plugins/specification/1.0/examples/full.json +++ b/plugins/specification/1.0/examples/full.json @@ -39,6 +39,10 @@ "tag1": "metaverse", "tag2": "virtual reality" }, + "banners": { + "high": "https://pub-2ef6bc2ae372488daf94a858e2b752ac.r2.dev/antpb/xr-chess-block/banner-1500x620.jpg", + "low": "https://pub-2ef6bc2ae372488daf94a858e2b752ac.r2.dev/antpb/xr-chess-block/banner-1500x620.jpg" + }, "versions": { "2.0-alpha": "https://updater.sxp.digital/xr-publisher.zip" }, @@ -65,6 +69,6 @@ "repository_url": "https://github.com/antpb/xr-publisher", "spec_meta": { "specification_version": "1.0", - "specification_source": "aspiprepress" + "specification_source": "aspirepress" } } \ No newline at end of file diff --git a/plugins/specification/1.0/schema/plugin.schema.json b/plugins/specification/1.0/schema/plugin.schema.json index ae0f20d..49ba806 100644 --- a/plugins/specification/1.0/schema/plugin.schema.json +++ b/plugins/specification/1.0/schema/plugin.schema.json @@ -245,7 +245,7 @@ }, "specification_source": { "type": "string", - "const": "aspiprepress" + "const": "aspirepress" } }, "required": [