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

Better Presentation of Maximum and Minimum String Length #2630

Open
APIWriter opened this issue Dec 9, 2024 · 0 comments
Open

Better Presentation of Maximum and Minimum String Length #2630

APIWriter opened this issue Dec 9, 2024 · 0 comments

Comments

@APIWriter
Copy link

APIWriter commented Dec 9, 2024

Describe the bug
I don't like the way minimum and maximum string lengths are presented. They are seen as an unlabeled array such a [5 .. 10]. It's not clear at one glance what the notation even refers to.
Image

Expected behavior
A more precise presentation would be to label each one explicitly:
Minimum length: 0
Maximum length: 5

Minimal reproducible OpenAPI snippet(if possible)
The coding is good, just not the rendering.

        zip_code:
          type: string
          minimum: 5
          maximum: 10
          nullable: true
          description: |
            Specifies the ZIP or postal code of the receiving destination.
          example: '91104'

Screenshots
Image

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant