mindmeld.components.schemas module¶
-
class
mindmeld.components.schemas.
DialogueResponseSchema
(*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)[source]¶ Bases:
marshmallow.schema.Schema
-
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
mindmeld.components.schemas.
FormEntitySchema
(*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)[source]¶ Bases:
marshmallow.schema.Schema
-
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
mindmeld.components.schemas.
FormSchema
(*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)[source]¶ Bases:
marshmallow.schema.Schema
-
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
mindmeld.components.schemas.
LanguageCodeField
(*, default: Any = <marshmallow.missing>, missing: Any = <marshmallow.missing>, data_key: str = None, attribute: str = None, validate: Union[Callable[[Any], Any], Iterable[Callable[[Any], Any]]] = None, required: bool = False, allow_none: bool = None, load_only: bool = False, dump_only: bool = False, error_messages: Dict[str, str] = None, **metadata)[source]¶ Bases:
marshmallow.fields.String
-
class
mindmeld.components.schemas.
LocaleCodeField
(*, default: Any = <marshmallow.missing>, missing: Any = <marshmallow.missing>, data_key: str = None, attribute: str = None, validate: Union[Callable[[Any], Any], Iterable[Callable[[Any], Any]]] = None, required: bool = False, allow_none: bool = None, load_only: bool = False, dump_only: bool = False, error_messages: Dict[str, str] = None, **metadata)[source]¶ Bases:
marshmallow.fields.String
-
class
mindmeld.components.schemas.
ParamsSchema
(*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)[source]¶ Bases:
marshmallow.schema.Schema
-
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
mindmeld.components.schemas.
RequestSchema
(*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)[source]¶ Bases:
marshmallow.schema.Schema
-
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
mindmeld.components.schemas.
TimeZoneField
(*, default: Any = <marshmallow.missing>, missing: Any = <marshmallow.missing>, data_key: str = None, attribute: str = None, validate: Union[Callable[[Any], Any], Iterable[Callable[[Any], Any]]] = None, required: bool = False, allow_none: bool = None, load_only: bool = False, dump_only: bool = False, error_messages: Dict[str, str] = None, **metadata)[source]¶ Bases:
marshmallow.fields.String
-
class
mindmeld.components.schemas.
TimestampField
(*, strict: bool = False, **kwargs)[source]¶ Bases:
marshmallow.fields.Integer
-
mindmeld.components.schemas.
deserialize_to_list_immutable_maps
(value)[source]¶ Custom attrs converter. Converts a list of elements into a list of immutables.Map objects.
-
mindmeld.components.schemas.
deserialize_to_lists_of_list_of_immutable_maps
(values)[source]¶ Custom attrs converter. Converts a list of elements into a list of immutables.Map objects.
-
mindmeld.components.schemas.
serialize_to_list_of_dicts
(values)[source]¶ Custom attrs converter. Converts a list of elements into a list of immutables.Map objects.
-
mindmeld.components.schemas.
serialize_to_lists_of_list_of_dicts
(values)[source]¶ Custom attrs converter. Converts a list of elements into a list of immutables.Map objects.
-
mindmeld.components.schemas.
validate_language_code
(value: Optional[str]) → Optional[str][source]¶ Validates language code parameters :param value: The language code parameter :type value: str
Returns: A validated language code or None if unvalidated Return type: str
-
mindmeld.components.schemas.
validate_locale_code
(value: Optional[str]) → Optional[str][source]¶ Validates the locale code parameters :param value: The locale code parameter :type value: str
Returns: A validated locale code or None if unvalidated Return type: str