Repository navigation
Json schemas - #2415
Merged
Merged
Json schemas#2415
Conversation
Collaborator
Author
|
Note that to test this schema you need: # yaml-language-server: $schema=https://raw.githubusercontent.com/espanso/espanso/refs/heads/json-schemas/schemas/match.schema.json |
AucaCoyan
marked this pull request as ready for review
August 2, 2025 04:19
smeech
reviewed
Aug 2, 2025
Collaborator
There was a problem hiding this comment.
Looks good.
Can you remind me how to test it?
I've tried:
# yaml-language-server: $schema=https://github.com/espanso/espanso/blob/json-schemas/schemas/match.schema.jsonbut that doesn't work.
Ah, got it:
# yaml-language-server: $schema=https://raw.githubusercontent.com/espanso/espanso/json-schemas/schemas/match.schema.jsonrandom: is now working, but its choices: parameter isn't yet.
Collaborator
Author
|
Right! I thought it was |
Collaborator
|
Thanks. Just reloaded VSCodium to check. 👍 |
sboldt1978
pushed a commit
to sboldt1978/espanso
that referenced
this pull request
Feb 11, 2026
* ✨ add `random` var type * 🐛 allow for more properties in `form_fields` * 🩹 add descriptions and a required property in shell var * ✏️ typo in `choices`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #2122
I have a couple of topics to talk:
First question
Mmmm, the main top-level keys are:
I don't allow any other top level key. Is that alright? (I saw you ask in the body of the #2122 issue)
Segunda pregunta:
causes this popup

Is that your intended action? 🤔
Finally
This schema should work for this collection of samples: