buffalo_panel.config.panel_case_to_mapping
- buffalo_panel.config.panel_case_to_mapping(spec)[source]
Convert a typed panel case spec into a YAML-friendly mapping.
- Parameters:
spec (
PanelCaseSpec) – Typed panel case specification to serialize.- Returns:
Mapping representation suitable for YAML or JSON serialization.
- Return type:
dict[str,object]
Notes
Fields whose values are
Noneare omitted from the serialized mapping. This keeps mutually exclusive schema branches such as airfoildesignationversusparamscompact while preserving a valid payload forpanel_case_from_mapping.