test_argschema_parser module¶
-
class
test_argschema_parser.MyNestedSchema(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.DefaultSchemaMyNestedSchema¶ key description default field_type json_type two a nested boolean (REQUIRED) Booleanbool one nested integer (REQUIRED) Integerint -
opts= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.MyNestedSchemaWithDefaults(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.DefaultSchemaMyNestedSchemaWithDefaults¶ key description default field_type json_type two a nested boolean True Booleanbool one nested integer 1 Integerint -
opts= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.MyParser(input_data=None, schema_type=None, output_schema_type=None, args=None, input_source=None, output_sink=None, logger_name='argschema.argschema_parser')[source]¶ Bases:
argschema.argschema_parser.ArgSchemaParserNote
This class takes a ArgSchema as an input to parse inputs , with a default schema of type
MySchema
-
class
test_argschema_parser.MySchema(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.ArgSchemaThis schema is designed to be a schema_type for an ArgSchemaParser objectMySchema¶ key description default field_type json_type a parameter a (REQUIRED) Integerint nest a nested schema NA MyNestedSchemadict b optional b string parameter my value Stringunicode log_level set the logging level of the module ERROR LogLevelunicode -
opts= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.MySchema2(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.ArgSchemaThis schema is designed to be a schema_type for an ArgSchemaParser objectMySchema2¶ key description default field_type json_type a parameter a (REQUIRED) Integerint nest a nested schema NA MyNestedSchemaWithDefaultsdict b optional b string parameter my value Stringunicode log_level set the logging level of the module ERROR LogLevelunicode -
opts= <marshmallow.schema.SchemaOpts object>¶
-