cercide / fastapi-xml

adds xml support to fastapi
MIT License
12 stars 2 forks source link

Example returns bad request error #1

Closed thmsdelange closed 1 year ago

thmsdelange commented 1 year ago

Hi,

I need to develop a simple xml api and wanted to make use of your package but I'm having some issues getting the example to work. Opening the docs and executing the example request on the /echo post endpoint at "Try it out" returns a bad request error with response body:

{
  "detail": "Unknown property echo:message"
}

Can you guide me to a solution?

Thanks in advance

cercide commented 1 year ago

Please note the this project is still at alpha stage. There has been significant changes in pydantic recently. The current version (1.10.2) seems to be not compatible. pydantic 1.9.2 will do the trick

pip3 uninstall pydantic
pip3 install pydantic==1.9.2
cercide commented 1 year ago

pydantic 1.10.* supported by since 1.0.0b1. closed.