JSON Schema DiagnosticsA JSON Schema (up to draft/2020-12) validation extension for Visual Studio Code. Provides a language server that validates JSON documents, including JSON Schema documents, against the $schema they declare. The extension is powered by a Language Server written in C# that uses the fantastic JsonSchema.Net library by Greg Dennis. Features
Local schema substitutionDuring development it is handy to use the real URLs that your schemas will be available from, but still be able to validate them. For example, say you have a schema that you plan to publish to https://company.com/schema/foo, but you're still creating it. Without changing your JSON, you should still be able to validate against that schema prior to publishing it.
To configure this, there are a few settings you can configure: The default configuration will expect the schema filenames to match the last segment of the URL. E.g., "https://company.com/schema/foo" will match If you have a different pattern, adjust the Search Globs and Search Url Pattern to fit your needs. Here are a few examples:
RequirementsSupports VS Code running on Windows x64, Linux x64, and OSX. Known IssuesRelease Notes
|