Skip to content

Commit

Permalink
feat: No reference fields in Open Booking API responses
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk committed Jul 21, 2022
1 parent 9dbc899 commit daa318c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
20 changes: 18 additions & 2 deletions versions/2.x/models/ScheduledSession.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"BRequest": "request",
"BResponse": "response",
"BResponseOrderItemError": "response",
"OrdersFeed": "response",
"OrderProposalsFeed": "response",
"OrdersFeed": "ordersFeed",
"OrderProposalsFeed": "ordersFeed",
"OrderStatus": "response",
"TestInterface": "testInterface"
},
Expand Down Expand Up @@ -127,6 +127,22 @@
"shallNotBeReferencedFields": [
"superEvent"
]
},
"ordersFeed": {
"requiredFields": [
"type",
"id",
"startDate",
"superEvent"
],
"recommendedFields": [
"eventStatus",
"maximumAttendeeCapacity",
"remainingAttendeeCapacity"
],
"shallNotInclude": [
"offers"
]
}
},
"fields": {
Expand Down
21 changes: 19 additions & 2 deletions versions/2.x/models/Slot.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"BRequest": "request",
"BResponse": "response",
"BResponseOrderItemError": "response",
"OrdersFeed": "response",
"OrderProposalsFeed": "response",
"OrdersFeed": "ordersFeed",
"OrderProposalsFeed": "ordersFeed",
"OrderStatus": "response",
"TestInterface": "request"
},
Expand Down Expand Up @@ -119,6 +119,23 @@
"shallNotBeReferencedFields": [
"facilityUse"
]
},
"ordersFeed": {
"requiredFields": [
"type",
"id",
"startDate",
"facilityUse"
],
"recommendedFields": [
"endDate",
"duration",
"maximumUses",
"remainingUses"
],
"shallNotInclude": [
"offers"
]
}
},
"inSpec": [
Expand Down

0 comments on commit daa318c

Please sign in to comment.