akkudoktoreos.server.dash.configuration.create_config_details

akkudoktoreos.server.dash.configuration.create_config_details(model: type[PydanticBaseModel], values: dict, values_prefix: list[str] = []) dict[str, dict]

Generate configuration details based on provided values and model metadata.

Parameters:
  • model (type[PydanticBaseModel]) – The Pydantic model to extract configuration from.

  • values (dict) – A dictionary containing the current configuration values.

  • values_prefix (list[str]) – A list of parent type names that prefixes the model values in the values.

Returns:

A dictionary of configuration details, each represented as a dictionary.

Return type:

dict[dict]