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 None are omitted from the serialized mapping. This keeps mutually exclusive schema branches such as airfoil designation versus params compact while preserving a valid payload for panel_case_from_mapping.