Package coprs :: Package rest_api :: Module schemas :: Class ProjectCreateSchema
[hide private]
[frames] | no frames]

SchemaMeta ProjectCreateSchema

source code


Nested Classes [hide private]

Inherited from marshmallow.schema.BaseSchema: Meta, OPTIONS_CLASS

Instance Methods [hide private]

Inherited from marshmallow.schema.BaseSchema: __init__, __repr__, dump, dumps, get_attribute, handle_error, load, loads, on_bind_field, validate

Inherited from marshmallow.schema.BaseSchema (private): _do_load, _invoke_dump_processors, _invoke_field_validators, _invoke_load_processors, _invoke_processors, _invoke_validators, _normalize_nested_options, _postprocess, _update_fields

Class Methods [hide private]

Inherited from marshmallow.schema.BaseSchema: accessor, error_handler

Class Variables [hide private]
  name = fields.Str(required= True, validate= [validate.Regexp(r...
  group = fields.Str(load_only= True, allow_none= True)
  chroots = SpaceSeparatedList(load_only= True, default= list)
  _declared_fields = {'build_enable_net': <fields.Boolean(defaul...
  opts = <marshmallow.schema.SchemaOpts object at 0x3fffada11450>

Inherited from ProjectSchema: build_enable_net, contact, description, disable_createrepo, homepage, id, instructions, is_a_group_project, last_modified, owner, repos

Inherited from marshmallow.schema.Schema: __processors__

Inherited from marshmallow.schema.BaseSchema: TYPE_MAPPING, __accessor__, __error_handler__

Properties [hide private]

Inherited from marshmallow.schema.BaseSchema: dict_class, set_class

Class Variable Details [hide private]

name

Value:
fields.Str(required= True, validate= [validate.Regexp(r"^[a-zA-Z][\w.-\
]*$", error= "Name must contain only letters," "digits, underscores, d\
ashes and dots." "And starts with letter"),])

_declared_fields

Value:
{'build_enable_net': <fields.Boolean(default=<marshmallow.missing>, at\
tribute=None, validate=None, required=False, load_only=False, dump_onl\
y=False, missing=<marshmallow.missing>, allow_none=True, error_message\
s={u'validator_failed': u'Invalid value.', u'null': u'Field may not be\
 null.', u'type': u'Invalid input type.', u'invalid': u'Not a valid bo\
olean.', u'required': u'Missing data for required field.'})>,
 'chroots': <fields.SpaceSeparatedList(default=<type 'list'>, attribut\
e=None, validate=None, required=False, load_only=True, dump_only=False\
...