FastApi generator does not work with structured inputs #5806
Labels
bug
Issues reporting bugs.
product/sdk-generator
Fern's SDK Generator that outputs client libraries in 7 languages
CLI Version from
fern.config.json
0.39.19
Generator & Version from
generators.yml
fernapi/fern-fastapi-server@"1.6.0"
Minimal API Specification
types:
SystemLocator:
key: value
Actual Generated Code
Expected Generated Code
The body is wrong - in a multiform upload FastApi expects a Form field. Having it as is causes a 422 in all cases. When I change my method to
The method call works as it bypasses fastapi validation. I think that the abstract method should leverage the Form FastApi integration so this works out of the box
Environment Details (Optional)
No response
The text was updated successfully, but these errors were encountered: