When a JetBrains IDE says my YAML front matter in a Markdown file has a schema validation error, what schema is it validating against? Can I change the schema?
When a JetBrains IDE says my YAML front matter in a Markdown file has a schema validation error, what schema is it validating against? Can I change the schema?
@Crell @ramsey From the support team:
It is hard to tell anything without full information (exact error, etc), but firstly I would check if any patterns that a Markdown file can match are added to "File | Settings | Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings"
There is no schema switcher in Markdown files, but patterns will still work for injected json/yaml
@brendt @Crell I didn’t have anything in JSON Schema Mappings, but I’ve created my own JSON Schema file for the frontmatter, and mapped it, but PhpStorm doesn’t appear to be using it for validation, or I’m not sure how to get it to start using it.
Thanks for the help, though! I’ll keep fiddling with it to see if I can get it to work.