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

the pattern field is displayed as lowercase that is not appropriate for pattern like [A-Z]{3} #549

Closed
M3lkior opened this issue Feb 16, 2022 · 1 comment

Comments

@M3lkior
Copy link

M3lkior commented Feb 16, 2022

Description

the display of the pattern field is lower cased that is it not appropriate when using a regex like [A-Z]{3} that is displayed as [a-z]{3}

Expected result

Display the pattern like it is set in the specification

image

Actual result

image

Steps to reproduce

Start from the AsyncAPI studio and add the "pattern": "[A-Z]{3}" in any field to see the rendering

Troubleshooting

To solve the issue, simply remove the lowercase css class in the https://github.com/asyncapi/asyncapi-react/blob/next/library/src/components/Schema.tsx (line 170)

M3lkior added a commit to M3lkior/asyncapi-react that referenced this issue Feb 16, 2022
the pattern is set to lowercase so some pattern expression like [A-Z]{3} are displayed as [a-z]{3} that is not correct

Close asyncapi#549
M3lkior added a commit to M3lkior/asyncapi-react that referenced this issue Feb 17, 2022
…xpected

the pattern is set to lowercase so some pattern expression like [A-Z]{3} are displayed as [a-z]{3} that is not correct

Close asyncapi#549
@magicmatatjahu
Copy link
Member

Fixed by #550

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

No branches or pull requests

2 participants