Expand description
§lintel-identify
Schema identification for JSON and YAML files using JSON Schema
§Features
Identifies which JSON Schema applies to a given file using multiple discovery strategies:
- YAML modeline (
# yaml-language-server: $schema=...) - Inline
$schemaproperty lintel.tomlschema mappings- SchemaStore catalog matching by filename
Optionally renders schema documentation in the terminal with --explain.
Part of the Lintel project.
§License
Apache-2.0
Structs§
- Identify
Args - Resolved
File Schema - Result of resolving a schema for a given file path.
Functions§
- build_
retriever - Build a
SchemaCachefromCliCacheOptions. - identify_
args - Construct the bpaf parser for
IdentifyArgs. - resolve_
schema_ for_ content - Resolve a schema from in-memory content and a virtual file path.
- resolve_
schema_ for_ file - Resolve the schema URI for a file path using the same priority as validation:
- resolve_
schema_ for_ path - Resolve the schema URI for a file path using only path-based matching:
- run