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

Validation of openapi spec version incorrect #215

Open
geoff-maddock opened this issue Jun 20, 2023 · 0 comments
Open

Validation of openapi spec version incorrect #215

geoff-maddock opened this issue Jun 20, 2023 · 0 comments

Comments

@geoff-maddock
Copy link

geoff-maddock commented Jun 20, 2023

Describe the bug

Spectral is throwing an error saying the openapi spec value of 3.0.0 is invalid. The help text right above the message shows: "Validation schema for OpenAPI Specification 3.0.X", but if I hover over the error, it shows conflicting helper text, saying:
String does not match the pattern of "^3\.1\.\d+(-,+)?$

To Reproduce

  1. Given this OpenAPI document '...'

Open spectral with a documnent where the first line is:
openapi: 3.0.0

  1. See error

Expected behavior
This value should be valid, and the messages in the spectral linting should not conflect with each other

Screenshots

spectral-error

Environment:

  • Extension version: v1.1.2
  • VS Code version: 1.79.2
  • Operating System: Windows10

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant