Skip to content

JSON Schema Validation in VS Code#1564

Merged
ChaelCodes merged 6 commits intorubyevents:mainfrom
ChaelCodes:schema-validation
Mar 31, 2026
Merged

JSON Schema Validation in VS Code#1564
ChaelCodes merged 6 commits intorubyevents:mainfrom
ChaelCodes:schema-validation

Conversation

@ChaelCodes
Copy link
Copy Markdown
Collaborator

@ChaelCodes ChaelCodes commented Mar 22, 2026

Description

We can get in-editor schema validation using the yaml-language-server if we store our schemas as json. This allows for autocomplete and validation of our keys without running bin/lint or validate.rake.

This is currently configured for VS Code, but supports multiple editors.

  • New rake task to generate all schemas (manually run upon changing a schema)
  • Configuration for installing the Yaml VS Code extension
  • Ensure the schemas stay up-to-date

Screenshots

image

Testing Steps

References

  • closes #

Comment thread rakelib/schema.rake Outdated
Comment thread lib/schemas/address_schema.json Outdated
@ChaelCodes ChaelCodes force-pushed the schema-validation branch 2 times, most recently from 03c52b5 to a0b3c02 Compare March 29, 2026 01:21
Comment thread test/lib/schema_export_test.rb
@ChaelCodes
Copy link
Copy Markdown
Collaborator Author

Screenshot 2026-03-28 at 10 25 33 PM It works!

@ChaelCodes ChaelCodes marked this pull request as ready for review March 29, 2026 23:58
@ChaelCodes ChaelCodes merged commit c38ae75 into rubyevents:main Mar 31, 2026
9 of 10 checks passed
@ChaelCodes ChaelCodes deleted the schema-validation branch March 31, 2026 00:36
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

Successfully merging this pull request may close these issues.

3 participants