From f0c3c7c11df387aae54eea242c1c436fc131ddc7 Mon Sep 17 00:00:00 2001 From: Jordan Jensen Date: Wed, 22 Jan 2025 16:28:29 -0800 Subject: [PATCH] Allow empty string for dismissed_at in schema --- .../draft/posit-publishing-record-schema-v3.json | 14 +++++++++++--- .../schemas/posit-publishing-record-schema-v3.json | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/internal/schema/schemas/draft/posit-publishing-record-schema-v3.json b/internal/schema/schemas/draft/posit-publishing-record-schema-v3.json index bfd04335c..48e4637cf 100644 --- a/internal/schema/schemas/draft/posit-publishing-record-schema-v3.json +++ b/internal/schema/schemas/draft/posit-publishing-record-schema-v3.json @@ -70,10 +70,18 @@ "examples": ["2024-01-19T09:33:33.131481-05:00"] }, "dismissed_at": { - "type": "string", - "format": "date-time", "description": "Date and time that the deployment process was dismissed. Will be empty if the deployment process was not dismissed.", - "examples": ["2024-01-19T09:33:33.131481-05:00"] + "examples": ["2024-01-19T09:33:33.131481-05:00"], + "anyOf": [ + { + "type": "string", + "maxLength": 0 + }, + { + "type": "string", + "format": "date-time" + } + ] }, "deployed_at": { "type": "string", diff --git a/internal/schema/schemas/posit-publishing-record-schema-v3.json b/internal/schema/schemas/posit-publishing-record-schema-v3.json index 0943ad61d..1cc949f7a 100644 --- a/internal/schema/schemas/posit-publishing-record-schema-v3.json +++ b/internal/schema/schemas/posit-publishing-record-schema-v3.json @@ -71,10 +71,18 @@ "examples": ["2024-01-19T09:33:33.131481-05:00"] }, "dismissed_at": { - "type": "string", - "format": "date-time", "description": "Date and time that the deployment process was dismissed. Will be empty if the deployment process was not dismissed.", - "examples": ["2024-01-19T09:33:33.131481-05:00"] + "examples": ["2024-01-19T09:33:33.131481-05:00"], + "anyOf": [ + { + "type": "string", + "maxLength": 0 + }, + { + "type": "string", + "format": "date-time" + } + ] }, "deployed_at": { "type": "string",