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

fix: name generation of component object #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

teto
Copy link

@teto teto commented Jan 2, 2023

While checking my generated openapi spec with https://editor.swagger.io/
I had errors like:

Semantic error at components.schemas.BaselineCheck_'HasCase_PhysicalUnit
Component names can only contain the characters A-Z a-z 0-9 - . _

Looking at the spec:
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#components-object
This looked like a valid concern: name must conform to ^[a-zA-Z0-9\.\-_]+$

This replaces invalid characters by their code.

While checking my generated openapi spec with https://editor.swagger.io/
I had errors like:

Semantic error at components.schemas.BaselineCheck_'HasCase_PhysicalUnit
Component names can only contain the characters A-Z a-z 0-9 - . _

Looking at the spec:
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#components-object
This looked like a valid concern: `name must conform to ^[a-zA-Z0-9\.\-_]+$`

This replaces invalid characters by their code.
@teto teto mentioned this pull request Jan 2, 2023
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.

1 participant