Skip to main content

declared_schema_kind

Function declared_schema_kind 

Source
pub fn declared_schema_kind(text: &str) -> Option<String>
Expand description

Peek at a fleet document’s schema key without committing to a form.

Returns None for legacy files, which declare no schema key at all. A malformed document returns None too; the legacy parser then owns the error, keeping old files on the old diagnostics.