From befb4fa0cb7d3bd3b973b2f7286e70ac928f60b3 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Mon, 25 Nov 2024 15:41:09 +0100 Subject: [PATCH] Add enum to status field --- json-schema/schema.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/json-schema/schema.json b/json-schema/schema.json index 6149368..4d24921 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -172,7 +172,16 @@ "type": "object", "properties": { "order:status": { - "type": "string" + "type": "string", + "enum": [ + "orderable", + "ordered", + "pending", + "shipping", + "succeeded", + "failed", + "canceled" + ] }, "order:id": { "type": "string" @@ -197,4 +206,4 @@ "additionalProperties": false } } -} \ No newline at end of file +}