Skip to main content

detect_type

Function detect_type 

Source
pub fn detect_type(data: &Value) -> YamlType
Expand description

Detect YAML type from parsed content.

This function uses a schema-first approach:

  1. Check for explicit $schema field
  2. Check for Kubernetes apiVersion + kind
  3. Check for CI/CD patterns
  4. Fallback to Generic