VED-940 Restructure Search API Sections#1062
Conversation
|
This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket: VED-940 |
dlzhry2nhs
left a comment
There was a problem hiding this comment.
Couple of general comments but overall looks good. One or two may need clarifying with PO/Architect as am not 100% clear on exactly what they are expecting from some of the bullet points.
| $ref: "#/components/requestBodies/SearchImmunizationPost" | ||
| responses: | ||
| "200": | ||
| $ref: "#/components/responses/200-imms-search" |
There was a problem hiding this comment.
When testing with the sandbox, it is telling me that: Violation: response.body.entry.0.resource Response body property entry.0.resource must match exactly one schema in oneOf.
This means that the first object in the example, the immunization, does not conform to the spec we've written. It could be the bit to do with search mode. Worth double checking exactly what it is that is upsetting it.
There was a problem hiding this comment.
The first places I would look is the structure of the patient object in the immunization as we mess around with this in search. Secondly, the example also contains a "search": {
"mode": "match"
} object, so also worth a check.
There was a problem hiding this comment.
This is VED-298. I'll be looking at it in due course.
The important thing is that the current changes (indeed all the changes since the original JSON) don't appear to have broken the sandbox any more than it was to start with.)
There was a problem hiding this comment.
Right, I would say the structure of the API response schema vs. example fundamentally does not match, so while we are working on adding the documentation for the POST endpoint this would be an ideal time to ensure things are right.
If we are not publishing until after VED-298 then it's ok to defer, but I would prefer when we introduce a new endpoint to the OAS file then it is completed properly rather than in a partially complete state.
dlzhry2nhs
left a comment
There was a problem hiding this comment.
Would ideally like the new endpoint example to match its schema, but worst case scenario can look to resolve in the next ticket.
|



Summary
Update the OAS documentation for Search to improve clarity and separate GET and POST into distinct, consistent sections.
Changes required:
Reviews Required
Review Checklist
ℹ️ This section is to be filled in by the reviewer.