From 997e7042e56028decff0379e8b7f9b7fd5429acd Mon Sep 17 00:00:00 2001 From: James Purser Date: Sun, 31 Mar 2024 18:15:51 +1100 Subject: [PATCH] Updated podcast episode schema --- .../content-types/podcast-episode/schema.json | 17 +- .../1.0.0/full_documentation.json | 454 +++++++++++++++++- 2 files changed, 455 insertions(+), 16 deletions(-) diff --git a/src/api/podcast-episode/content-types/podcast-episode/schema.json b/src/api/podcast-episode/content-types/podcast-episode/schema.json index aa85195..292c7b3 100644 --- a/src/api/podcast-episode/content-types/podcast-episode/schema.json +++ b/src/api/podcast-episode/content-types/podcast-episode/schema.json @@ -20,9 +20,6 @@ "type": "richtext", "required": true }, - "Transcript": { - "type": "richtext" - }, "Audio_MP3": { "type": "media", "multiple": false, @@ -48,6 +45,20 @@ "allowedTypes": [ "audios" ] + }, + "Transcript": { + "type": "customField", + "options": { + "preset": "custom" + }, + "customField": "plugin::ckeditor5.CKEditor" + }, + "Subtitles": { + "allowedTypes": [ + "files" + ], + "type": "media", + "multiple": false } } } diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 5fa2da9..41f13f3 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2023-08-27T05:30:45.435Z" + "x-generation-date": "2024-03-31T01:56:01.090Z" }, "x-strapi-config": { "path": "/documentation", @@ -4011,9 +4011,6 @@ "Description": { "type": "string" }, - "Transcript": { - "type": "string" - }, "Audio_MP3": { "oneOf": [ { @@ -4049,6 +4046,20 @@ } ], "example": "string or id" + }, + "Transcript": { + "type": "string" + }, + "Subtitles": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" } } } @@ -4114,9 +4125,6 @@ "Description": { "type": "string" }, - "Transcript": { - "type": "string" - }, "Audio_MP3": { "type": "object", "properties": { @@ -4915,9 +4923,6 @@ "Description": { "type": "string" }, - "Transcript": { - "type": "string" - }, "Audio_MP3": { "type": "object", "properties": { @@ -5216,6 +5221,148 @@ } } }, + "Transcript": { + "type": "string" + }, + "Subtitles": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -5491,6 +5638,148 @@ } } }, + "Transcript": { + "type": "string" + }, + "Subtitles": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -6343,9 +6632,6 @@ "Description": { "type": "string" }, - "Transcript": { - "type": "string" - }, "Audio_MP3": { "type": "object", "properties": { @@ -6884,6 +7170,148 @@ } } }, + "Transcript": { + "type": "string" + }, + "Subtitles": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "attributes": { + "type": "object", + "properties": {} + } + } + } + } + } + } + } + } + } + } + }, "createdAt": { "type": "string", "format": "date-time"