-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Vet endpoint does not work as described in the OpenAPI spec #103
Comments
By removing the |
Hi, I don't know about potential functional side effects w/ the duplication of these data |
I prefer to share the specialities between vets and don't duplicate this static data used in drop down list. |
OK |
Vet and Specialty are two different aggregates for the reason that you can register a specialty independent of a Vet. They should be linked by their ids in my opinion. |
See #125 |
The OpenAPI spec describes the POST vet endpoint payload with the example
{ "firstName": "James", "lastName": "Carter", "specialties": [ { "name": "radiology" } ] }
This does not work. The endpoint only works when also passing the id of an existing specialty.
I think the correct way to model the payload of this endpoint would be to pass a list of specialty ids, but that would break all the existing clients.
The text was updated successfully, but these errors were encountered: