Closed dave-shawley closed 2 years ago
Perhaps the openapi needs to specify application/json-patch+json
instead of application/json
?
https://github.com/AWeber-Imbi/imbi-openapi/blob/main/src/endpoints/project_notes.yaml#L109
It was certainly the former ... good 👀
I created the jsonPatch Request component and jsonPatch Schema component to handle the recursive type stuff. It uses a simple top-level recursiveType schema object which recursively references itself based on some github issue on some project (sorry ... that is about as good as my memory gets these days).
The imbi-ui is sending a
PATCH
request with aapplication/json-patch+json
document and it is failing with a 415 Unsupported Media Type. It should work based on https://github.com/AWeber-Imbi/imbi-api/blob/c03a33f1ec16f82a595e801d285a96c4bb268e97/imbi/app.py#L68-L70