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

Add space after colon #494

Merged
merged 2 commits into from
Aug 14, 2024
Merged

Conversation

tamir-alltrue-ai
Copy link
Contributor

When trying to create a pydantic class from this spec using datamodel-code-gen, having a quote right after a colon creates the following error: https://stackoverflow.com/questions/9055371/python-and-pyaml-yaml-scanner-scannererror-mapping-values-are-not-allowed-her

Adding a space to make this processable by datamodel-code-gen

When trying to create a pydantic class from this spec using `datamodel-code-gen`, having a quote right after a colon creates the following error: https://stackoverflow.com/questions/9055371/python-and-pyaml-yaml-scanner-scannererror-mapping-values-are-not-allowed-her

Adding a space to make this processable by datamodel-code-gen

Signed-off-by: tamir-alltrue-ai <[email protected]>
@tamir-alltrue-ai tamir-alltrue-ai requested a review from a team as a code owner July 12, 2024 13:31
@jkowalleck
Copy link
Member

The described problem seams to be an issue with the code generator in use.
You should report it to them, @tamir-alltrue-ai .

@tamir-alltrue-ai
Copy link
Contributor Author

@jkowalleck any downside in adding a space after a colon? if anything it's just a formatting improvement.

@jkowalleck
Copy link
Member

no issue with the proposed change.
but still: please report datamodel-code-gen that bug, @tamir-alltrue-ai

@jkowalleck jkowalleck merged commit f18b992 into CycloneDX:master Aug 14, 2024
7 of 8 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