Skip to content

Comments

fix: resolve FastAPI deprecation warning for example fields#507

Merged
awalker4 merged 1 commit intoUnstructured-IO:mainfrom
emmanuel-ferdman:main
Jun 2, 2025
Merged

fix: resolve FastAPI deprecation warning for example fields#507
awalker4 merged 1 commit intoUnstructured-IO:mainfrom
emmanuel-ferdman:main

Conversation

@emmanuel-ferdman
Copy link
Contributor

PR Summary

This small PR resolves deprecation warnings for the example parameter in FastAPI's Form object, replacing it with the recommended examples parameter. These warnings are visible in the CI logs:

/home/runner/work/unstructured-api/unstructured-api/prepline_general/api/models/form_params.py:54: DeprecationWarning: `example` has been deprecated, please use `examples` instead

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Copy link
Collaborator

@awalker4 awalker4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks!

@awalker4 awalker4 enabled auto-merge (squash) June 2, 2025 19:00
@awalker4 awalker4 merged commit 6457794 into Unstructured-IO:main Jun 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants