-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve pydantic model translation (#582)
* Add support for translating pydantic descriptions to record docs * Render record title as schema doc * Accept kwargs on AvroModel.avro_schema and pass to json.dumps * Address PR comments - added test case - reverted changes to PydanticParser - added PydanticParser.get_field_metadata staticmethod called from parse_fields() to obtain description as field doc - added PydanticParser.generate_documentation to obtain title as record doc * Fix doc generation and typing --------- Co-authored-by: Marcos Schroh <[email protected]>
- Loading branch information
1 parent
b8fcdb8
commit 82f53e1
Showing
3 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters