buffalo_panel.config.dump_panel_case

buffalo_panel.config.dump_panel_case(spec, *, file_type='yaml')[source]

Serialize a typed panel case spec to JSON or YAML text.

Parameters:
  • spec (PanelCaseSpec) – Typed panel case specification to serialize.

  • file_type (Literal[``”json”, ``"yaml"], optional) – Output text format.

Returns:

Serialized JSON or YAML document text.

Return type:

str

Raises:

ValueError – If format is unsupported.