From daa318c3e3028b81d0ed3d55776e951e0dd603a2 Mon Sep 17 00:00:00 2001 From: nickevansuk <2616208+nickevansuk@users.noreply.github.com> Date: Thu, 21 Jul 2022 13:21:03 +0100 Subject: [PATCH] feat: No reference fields in Open Booking API responses --- versions/2.x/models/ScheduledSession.json | 20 ++++++++++++++++++-- versions/2.x/models/Slot.json | 21 +++++++++++++++++++-- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/versions/2.x/models/ScheduledSession.json b/versions/2.x/models/ScheduledSession.json index cf55e54d..a67be18b 100644 --- a/versions/2.x/models/ScheduledSession.json +++ b/versions/2.x/models/ScheduledSession.json @@ -38,8 +38,8 @@ "BRequest": "request", "BResponse": "response", "BResponseOrderItemError": "response", - "OrdersFeed": "response", - "OrderProposalsFeed": "response", + "OrdersFeed": "ordersFeed", + "OrderProposalsFeed": "ordersFeed", "OrderStatus": "response", "TestInterface": "testInterface" }, @@ -127,6 +127,22 @@ "shallNotBeReferencedFields": [ "superEvent" ] + }, + "ordersFeed": { + "requiredFields": [ + "type", + "id", + "startDate", + "superEvent" + ], + "recommendedFields": [ + "eventStatus", + "maximumAttendeeCapacity", + "remainingAttendeeCapacity" + ], + "shallNotInclude": [ + "offers" + ] } }, "fields": { diff --git a/versions/2.x/models/Slot.json b/versions/2.x/models/Slot.json index af584fc9..8fc48796 100644 --- a/versions/2.x/models/Slot.json +++ b/versions/2.x/models/Slot.json @@ -28,8 +28,8 @@ "BRequest": "request", "BResponse": "response", "BResponseOrderItemError": "response", - "OrdersFeed": "response", - "OrderProposalsFeed": "response", + "OrdersFeed": "ordersFeed", + "OrderProposalsFeed": "ordersFeed", "OrderStatus": "response", "TestInterface": "request" }, @@ -119,6 +119,23 @@ "shallNotBeReferencedFields": [ "facilityUse" ] + }, + "ordersFeed": { + "requiredFields": [ + "type", + "id", + "startDate", + "facilityUse" + ], + "recommendedFields": [ + "endDate", + "duration", + "maximumUses", + "remainingUses" + ], + "shallNotInclude": [ + "offers" + ] } }, "inSpec": [