Skip to content

flowmachine.core.server.query_schemas.one_of_query

Class OneOfQuerySchema

OneOfQuerySchema(*, only: 'types.StrSequenceOrSet | None' = None, exclude: 'types.StrSequenceOrSet' = (), many: 'bool | None' = None, context: 'dict | None' = None, load_only: 'types.StrSequenceOrSet' = (), dump_only: 'types.StrSequenceOrSet' = (), partial: 'bool | types.StrSequenceOrSet | None' = None, unknown: 'str | None' = None)
Source: flowmachine/core/server/query_schemas/one_of_query.py

Schema for deserialising to one of a choice of query kinds. The query_schemas attribute is an iterable of allowed query schemas.

Attributes

Methods

get_obj_type

get_obj_type(self, obj)
Source: flowmachine/core/server/query_schemas/one_of_query.py

Returns name of the schema during dump() calls, given the object being dumped.

dict_class

dict_class
Source: marshmallow/schema.py

type_schemas

type_schemas
Source: flowmachine/core/server/query_schemas/one_of_query.py