🌐
JetBrains
jetbrains.com › help › idea › yaml.html
YAML | IntelliJ IDEA Documentation
August 4, 2026 - IntelliJ IDEA supports code completion and inspections for YAML files using the JSON schema. IntelliJ IDEA can infer a schema automatically (based on the file location or structure), or you can select it manually.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360008134479-Any-support-for-YAML-JSON-Schema-
Any support for YAML/JSON Schema? – IDEs Support (IntelliJ Platform) | JetBrains
April 27, 2020 - I'm using a product that has a complex YAML schema and it would be a huge benefit to have schema validation and code completion. ... Yes, it it possible. Please check corresponding documentation topics for JSON and YAML. ... Andrey, the second link directs to rubyMine. Is the yaml validation available in other Jetbrains products, like IntelliJ?
🌐
Medium
medium.com › @alexmolev › boost-your-yaml-with-autocompletion-and-validation-b74735268ad7
Boost your YAML with autocompletion and validation | by Alex Molev | Medium
September 1, 2020 - In this article I would provide you step by step how to develop autocomletion and validation for YAML files. How to setup development environment for Visual Studio Code and IntelliJ. I’ll wrap up with how to make automatically the Schema JSON available in many IDEs so everyone will be able to use it with no need to configure it manually.
🌐
JetBrains
plugins.jetbrains.com › plugin › 25988-pojo-to-yaml
POJO to YAML - IntelliJ IDEs Plugin | Marketplace
February 17, 2025 - IntelliJ POJO to YAML. A simple plugin for converting POJO to YAML schema in IntelliJ IDEA. this plugin support: + convert basic data type to YAML schema. + convert nested object to YAML schema.
🌐
JetBrains
jetbrains.com › help › idea › code-style-yaml.html
Code Style. YAML | IntelliJ IDEA Documentation
April 21, 2026 - Use this page to configure formatting options for YAML files. When you change these settings, the Preview pane shows how this will affect your code. In this tab, customize the exceptions, brace placement and alignment options that IntelliJ IDEA will apply to various code constructs on reformatting ...
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-264507 › How-do-I-tell-which-JSON-schema-is-applied-to-my-YAML-file
How do I tell which JSON schema is applied to my YAML file? : IJPL-64972
E.g. here we could have a top quick fix Change JSON Schema for a key mismatch when schema is detected automatically by name: 12 · Project · IntelliJ Platform · Priority · Normal · N · State · Backlog · Type · Usability Problem · Subsystem · Lang. YAML ·
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-212936 › Apply-JSON-Schema-to-YAML
Apply JSON Schema to YAML : IJPL-65064 - YouTrack
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-323117
Support for YAML Schema using yaml-language-server ...
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-271611 › YAML-schema-property-should-add-the-mapping
YAML: $schema property should add the mapping - YouTrack
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
Top answer
1 of 1
2

There is nothing in the schema itself that indicates possible values from data. There's actually no requirement that items in the required array also be defined in properties.

This sort of functionality is defined by the IDE only. IntelliJ IDEA documents the ability to add custom schemas:

Besides schemas from JSON Schema Store, IntelliJ IDEA lets you configure and use custom schemas from other storages. You can download the required schema and store it under the project root or specify the URL of the resource so IntelliJ IDEA can download the schema automatically.

To configure a custom JSON Schema:

In the Settings/Preferences dialog ⌘,, go to Languages and Frameworks | Schemas and DTDs | JSON Schema Mappings.

https://www.jetbrains.com/help/idea/json.html#ws_json_schema_add_custom

It also details later how to make the intelesense provide a rich preview:

Using HTML descriptions in JSON schema #

By default, IntelliJ IDEA escapes HTML characters when displaying documentation for JSON schema definitions in documentation popups. To get nice looking documentation with rich HTML markup, store the HTML description in the x-intellij-html-description extension property instead of description.

https://www.jetbrains.com/help/idea/json.html#ws_json_show_doc_in_html

However,

autocompletes based on another properties' keys

sounds like custom functionality specifically designed for writing JSON Schema. JSON Schema itself cannot reference data dynamically like that (which I assume is what you were thinking).

Find elsewhere
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-210945 › YAML-json-schema-validation-for-multiple-documents-in-yaml-file
YAML json schema validation for multiple documents in . ...
August 1, 2022 - Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-279862
Can't specify some JSON schema to yaml file : IDEA-279862
October 7, 2021 - Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
GitHub
github.com › redhat-developer › vscode-yaml › issues › 958
Add `$schema: ` syntax to load JSON schema for YAML files · Issue #958 · redhat-developer/vscode-yaml
July 29, 2023 - Is your enhancement related to a problem? Please describe. Recently, Intellij added a syntax to load a JSON schema for YAML files in the format of $schema: https://schemaURL. It would be great if the YAML extension could also leverage th...
Author: redhat-developer
🌐
JetBrains
youtrack.jetbrains.com › issue › IJPL-64527 › YAML-schema-property-should-add-the-mapping
YAML: $schema property should add the mapping
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
Red Hat
developers.redhat.com › blog › 2020 › 11 › 25 › how-to-configure-yaml-schema-to-make-editing-files-easier
How to configure YAML schema to make editing files easier | Red Hat Developer
January 25, 2021 - YAML schemas allow several IDEs and editors to provide code completion, documentation on hover, and validation of the file, including Eclipse Desktop IDE, Eclipse Che, VS Code, IntelliJ, Emacs, and vim.
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-262391
Support link to json-schema files in yaml documents
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
JetBrains
jetbrains.com › help › phpstorm › yaml.html
YAML | PhpStorm Documentation
October 11, 2024 - If you want to use a local schema file, specify the path to it relative to the file where you want to use the schema, for example, # $schema: ./my-schema.json. This will enable the same coding assistance that you would have when you use a remote schema, including inspections, completion, and property filling actions. PhpStorm provides the ability to copy a full path to a specific option specified in the YAML file.
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-265379 › JSON-Schema-with-YAML-custom-tags
JSON Schema with YAML custom tags : IDEA-265379
Showcasing clean code with your ... in a YAML file show warnings. Or from a business perspective - convincing customers to switch to your IDEs is more difficult because of mostly irrelevant stuff like this. ... Is there a way to circumvent this issue? Can we somehow extend the json schema used for ...
🌐
DZone
dzone.com › coding › frameworks › spring boot config documentation, two ways with intellij idea
Spring Boot Config Documentation, Two Ways With IntelliJ IDEA
December 3, 2019 - In reality, "the YAML schema is written in JSON format"² (strange!). At the time of writing, Draft#8 or 2019–09 has been released , including tools like Visual Studio Code (with the YAML extension by Red Hat), IntelliJ IDEA 2019.x support Draft#7.
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-212936
Jetbrains
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.