Schema
class flow_api.schema.Schema
(select=None, init=None, by=name, **kwargs
)
Base class: Resource
A schema object can be used to validate data
A schema can be created with system.schema('schemaname').save()
inside the handler
function of a flow script using the system
reference.
See the corresponding Resources class at Schema
Parameters
Name | Type | Description |
---|---|---|
**kwargs | ||
by | ||
init | ||
select |
Constants
RESOURCE = schemaMethods
add_tag (tag)
archive ()
clone (update=None, **kwargs)
coerce (data)
delete (permanently=False)
exists ()
export ()
get (*fields, default=None)
get_dict (*fields, default=None)
get_identity_created_by ()
get_identity_modified_by ()
get_tags (limit=1000, offset=0, order=None)
load (*fields)
remove_tag (tag)
restore ()
save (update=None, **kwargs)
set (key, value)
validate (data, coerce=False)