question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with v3.1.0 using Visual Studio Code

See original GitHub issue

Hi,

In Visual Studio Code with the 42Crunch extension, I’m getting the following error for my openapi.yml file (but no others) for:

openapi: ‘3.0.2’

String does not match the pattern of "^3\.1\.\d+(-.+)?$".

{
	"resource": "/d:/<path>/openapi.yml",
	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 8,
	"message": "String does not match the pattern of \"^3\\.1\\.\\d+(-.+)?$\".",
	"source": "yaml-schema: https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json",
	"startLineNumber": 1,
	"startColumn": 10,
	"endLineNumber": 1,
	"endColumn": 17
}

So it appears to try to impose 3.1.x, but only for the openapi.yml root file.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Tasselhoffcommented, May 19, 2021

No, the tooling is using the 3.1 metaschema when you’re trying to validate a 3.0 document. That is a tooling error.

OK, thanks. I’ve found the relevant 42crunch repository…

0reactions
petermarcoencommented, Jun 15, 2021

@Tasselhoff I have the same problem, what did you do to solve this? I switched to 3.1 to bypass the error but I don’t want to up my version every couple of months, especially if the spec might change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code Frequently Asked Questions
VS Code will no longer provide product updates or security fixes on Windows 7 and VS Code version 1.70.3 is the last available...
Read more >
November 2022 (version 1.74) - Visual Studio Code
Learn what is new in the Visual Studio Code November 2022 Release (1.74) ... November 2022 (version 1.74). Update 1.74.1: The update addresses...
Read more >
Setting up Visual Studio Code
VS Code is a free code editor, which runs on the macOS, Linux, and Windows operating systems. Follow the platform-specific guides below: macOS...
Read more >
VS Code Community Discussions for Extension Authors
Questions regarding how to approach a specific problem, looking for more details on certain APIs, and seeking best practices are all great ...
Read more >
Making Remote Development Even Better - Visual Studio Code
dev. The updated CLI is built into the latest VS Code release and is also available for standalone install, so you can create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found