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

Schema of type string must specify maxLength, enum, or const #2634

Closed
mcrobbj opened this issue Jun 7, 2024 · 3 comments
Closed

Schema of type string must specify maxLength, enum, or const #2634

mcrobbj opened this issue Jun 7, 2024 · 3 comments

Comments

@mcrobbj
Copy link

mcrobbj commented Jun 7, 2024

For support questions, please use the Stoplight Discord Community. This repository's issues are reserved for feature requests and bug reports. If you are unsure if you are experiencing a bug, our Discord is a great place to start.

Please delete this section, any any sections below that you don't use, before creating the issue.

Describe the bug
Should pattern not be added to this, as the regex will state what the maxLength can be?

To Reproduce

  1. Given this OpenAPI/AsyncAPI document '...'
  2. Run this CLI command '....'
  3. See error

Expected behavior
No error if a pattern is available.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (remove any that are not applicable):

  • Library version: [e.g. 3.0.0]
  • OS: [e.g. Windows 7]
  • Browser: [e.g. Chrome 61]

Additional context
Add any other context about the problem here.

@daniel-white
Copy link

hi - we're not sure what you are asking. can you please provide answers to the prompts above so that we can better help you? thanks!

@brendarearden
Copy link
Contributor

We are closing due to inactivity. If you are still experiencing this problem, please open a new issue and provide necessary information to reproduce.

@brendarearden
Copy link
Contributor

If this is related to owasp, you can open an issue here: https://github.com/stoplightio/spectral-owasp-ruleset

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

3 participants