Skip to content

Modelines

View as Markdown

For a single document, put a schema modeline in its opening comments. Relative schema paths in a modeline resolve from the YAML file. In a multi-document file, add the comment within the document’s header to associate it with that document.

# yaml-language-server: $schema=../schemas/service.json
name: api

Use $schema=none in the modeline to skip schema validation for the document. For automatic catalog matching and Kubernetes settings, see the settings reference.