fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.68k stars 151 forks source link

fix(python): multipart file upload parameter fixes, python core utility bugfix. #5201

Closed eyw520 closed 2 days ago

eyw520 commented 3 days ago

This PR implements two fixes:

  1. Fixed issue in generated multifile upload endpoints where OMIT sentinel values could be unintentionally encoded, throwing a TypeError exception.
  2. Fixed bug in shared file.py method with_content_type() where we resolved to default spec content-type rather than user-specified content-type value.
github-actions[bot] commented 3 days ago

🌿 Preview your docs: https://fern-preview-40737aa8-69c1-4de4-bc93-59c883d088e3.docs.buildwithfern.com/learn