lcdata.schema.get_default_value

lcdata.schema.get_default_value(schema, key, count=None)

Get the default value for a key in a schema.

Parameters
  • schema (dict[dict]) – Schema to compare to

  • key (str) – Key to look for in the schema.

  • count (int, optional) – For default functions that return different values, the number of values to return. By default, only a single value is returned.

Returns

The default value parsed from the schema.

Return type

default_value

Raises

ValueError – If a default value does not exist for this key in the schema.