-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support Pydantic v1 output #12
Conversation
@@ -37,13 +37,21 @@ def generate_bo4e_schemas(input_directory: Path, output_directory: Path): | |||
help="Output directory for the generated python files.", | |||
required=True, | |||
) | |||
@click.option( | |||
"--pydantic-v1/--pydantic-v2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wie gibt man das nun an?
kann man entweder --pydantic-v1
oder -pydantic-v2
angeben?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Genau. Und der default ist v2
src/bo4e_generator/__main__.py
Outdated
@@ -37,13 +37,21 @@ def generate_bo4e_schemas(input_directory: Path, output_directory: Path): | |||
help="Output directory for the generated python files.", | |||
required=True, | |||
) | |||
@click.option( | |||
"--pydantic-v1/--pydantic-v2", | |||
"-p", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
und wie würde man in der abgekürzten Form angeben?
-p 1
vs -p 2
oder -p v1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DeltaDaniel might need this to work together with https://github.com/Hochfrequenz/bo4e-python-orm