We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Within the OSCAL schema is:
"EmailAddressDatatype" : { "description" : "An email address string formatted according to RFC 6531.", "allOf" : [ { "$ref" : "#/definitions/StringDatatype" }, { "type" : "string", "format" : "email", "pattern" : "^.+@.+$" } ] },
An empty body is produced by datamodel-codegen:
class EmailAddressDatatype(OscalBaseModel): """ An email address string formatted according to RFC 6531. """
To Reproduce
Example schema (snippet):
Follow link above for full schema.
Used commandline:
datamodel-codegen --disable-timestamp --disable-appending-item-suffix --use-schema-description --input-file-type jsonschema --input release-1.1.2-schemas/oscal_assessment-plan_schema.json --base-class trestle.core.base_model.OscalBaseModel --output trestle/oscal/tmp/assessment_plan.py
Expected behavior The generated code body should not be empty, but rather contain that which is found in the json schema.
Version:
Additional context NA
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Within the OSCAL schema is:
An empty body is produced by datamodel-codegen:
To Reproduce
Example schema (snippet):
Follow link above for full schema.
Used commandline:
Expected behavior
The generated code body should not be empty, but rather contain that which is found in the json schema.
Version:
Additional context
NA
The text was updated successfully, but these errors were encountered: