Closed juliusmh closed 1 year ago
Would be very nice to inline the request body right there in "request-body.html". However I am not sure how to do that in the template directly.
Hi @juliusmh Thank You for submitting this issue. I apologize for replying late - I read your message immediately but didn't have the time to reply earlier. I'll look into this and fix the issue - the latest next week, since I have a few days of holidays and time for it.
No worries. Enjoy the holidays 🎄
Thanks again @juliusmh for reporting this issue. Finally I was focused on my web frameworks in the last (several) weeks and I postponed this fix.
I corrected this yesterday, with https://pypi.org/project/essentials-openapi/1.0.6/
Marshalling the following spec fails, probably because
operation.requestBody.content
is null/undefined during template stage. I assume the problem is related to resolving the referenceSpec:
Full StackTrace
``` Traceback (most recent call last): File "/opt/homebrew/bin/oad", line 8, in{{texts.request_body}}
File "/opt/homebrew/lib/python3.10/site-packages/openapidocs/mk/v3/__init__.py", line 260, in simplify_content simplified_content = copy.deepcopy(content) File "/opt/homebrew/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 161, in deepcopy rv = reductor(4) TypeError: cannot pickle 'Undefined' object ```