Follow up on "Is it possible to have a schema with no $ref references ?" #2417
Unanswered
neilnatarajan
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@samuelcolvin @dmontagu
#889
Hi! This project has been immensely useful. I have a production system that was initially using large hand crafted json schemas and is now cutting over to schemas generated by pydantic. To make the cut-over as seamless as possible it would be ideal to have the new generated schema have minimal diffs with the previous schema which didn't utilize any refs. I found this older issue in which it was discussed that a helper function for
schema_extra
could be provided to post process and convert the schema to not use any definitions. I just wanted to know if that work was ever taken up or if such a function exists today in Pydantic. For context, I have no self referencing models so that complexity is avoided thankfully. Any advice or info would be really appreciated. Thanks again for all the work and an awesome projectBeta Was this translation helpful? Give feedback.
All reactions