esrf_pathlib._schemas.fields.base#

Classes

Field(name, description, schema_identifier, ...)

class esrf_pathlib._schemas.fields.base.Field(name, description, schema_identifier, value_generator, value_serializer=None, examples=None)[source]#

Bases: object

Parameters:
  • name (str)

  • description (str)

  • schema_identifier (SchemaIdentifier)

  • value_generator (Union[Callable[..., Any], Type[Any]])

  • value_serializer (Union[Callable[..., Any], Type[Any], None])

  • examples (Optional[List[str]])

annotation()[source]#

More specific type annotation of the return value of deserialize.

Return type:

Any

value_info()[source]#
Return type:

Tuple[Optional[str], Optional[str]]

property description: str#
property docstring: str#
property name: str#
property schema_identifier: SchemaIdentifier#