spectral icon indicating copy to clipboard operation
spectral copied to clipboard

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

Open mcrobbj opened this issue 1 year ago • 1 comments

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.

mcrobbj avatar Jun 07 '24 14:06 mcrobbj

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!

daniel-white avatar Jun 14 '24 14:06 daniel-white

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 avatar Jul 10 '24 16:07 brendarearden

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

brendarearden avatar Jul 10 '24 16:07 brendarearden