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)
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)
Returns name of the schema during dump() calls, given the object being dumped.
dict_class¶
dict_class
type_schemas¶
type_schemas