Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monkey patch pydantic.PyObject to avoid error during schema generation #68

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

aaraney
Copy link
Member

@aaraney aaraney commented Oct 19, 2023

Monkey patch pydantic.PyObject to avoid throwing an error when generating a pydantic model's schema. PyObject will show up as string types in model's schema.

ngen.config - 0.1.10

Changes

  • Monkey patch pydantic.PyObject to avoid throwing an error when generating a pydantic model's schema. PyObject will show up as string types in model's schema.

- Monkey patch `pydantic.PyObject` to avoid throwing an error when
  generating a pydantic models schema. PyObject will show up as string
  types in model schema.
@aaraney
Copy link
Member Author

aaraney commented Oct 19, 2023

Of note, we do the same thing in ngen.cal.

@hellkite500 hellkite500 merged commit 764ce72 into NOAA-OWP:master Nov 2, 2023
13 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