pub struct Override {
pub files: Vec<String>,
pub schemas: Vec<String>,
pub validate_formats: Option<bool>,
}Expand description
Conditional settings applied to files or schemas matching specific patterns.
Each [[override]] block targets files by path glob, schemas by URI glob,
or both. When a file matches, the settings in that block override the
top-level defaults. Earlier entries (from child configs) take priority over
later entries (from parent configs).
In TOML, override blocks are written as [[override]] (double brackets) to
create an array of tables.
Fields§
§files: Vec<String>Glob patterns matched against instance file paths (relative to the working directory).
Use standard glob syntax: * matches any single path component, **
matches zero or more path components, and ? matches a single
character.
schemas: Vec<String>Glob patterns matched against schema URIs.
Each pattern is tested against both the original URI (before rewrite
rules) and the resolved URI (after rewrites and // prefix
resolution), so you can match on either form.
validate_formats: Option<bool>Enable or disable JSON Schema format keyword validation for matching
files.
When true, string values are validated against built-in formats such
as date-time, email, uri, etc. When false, format annotations
are ignored during validation. When omitted, this override does not
affect the format validation setting and the next matching override (or
the default of true) applies.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Override
impl<'de> Deserialize<'de> for Override
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Override
impl JsonSchema for Override
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more