Пример #1
0
 class Root(Schema):
     node = SubSchema(Node, required=True)
     enabled = Boolean(default=False, output_missing=True)
Пример #2
0
 class Root(Schema):
     node = SubSchema(Node, allow_none=True)
     enabled = Boolean(default=False)
Пример #3
0
 class Node(Schema):
     label = String(required=True)
     sub = SubSchema(S, required=True)
Пример #4
0
 class Root(Schema):
     node = SubSchema(Node, required=True)
Пример #5
0
 class Node(Schema):
     id = String(required=True)
     node = List(SubSchema('Node'), allow_none=True)
Пример #6
0
 class S(Schema):
     foo = SubSchema(FooSchema, required=True)
Пример #7
0
 class Root(Schema):
     node = SubSchema(Node,
                      name='foo_node',
                      allow_none=True,
                      output_missing=True)
     enabled = Boolean(default=False)
Пример #8
0
 class Root(Schema):
     node = SubSchema(Node,
                      name="foo_node",
                      default=make_subschema,
                      output_missing=True)
     enabled = Boolean(default=False)
Пример #9
0
 class Root(Schema):
     node = SubSchema(Node, name="foo_node", allow_none=False)
     enabled = Boolean(default=False)
Пример #10
0
 class S(Schema):
     foo = SubSchema(FooSchema)
Пример #11
0
 class Dealership(Schema):
     info = SubSchema(DealershipCarBrands, required=True)
Пример #12
0
 class DealershipCarBrands(Schema):
     n_brands = Float(required=True)
     brands = List(SubSchema(CarBrand), required=True)
Пример #13
0
 class Node(Schema):
     id = String(required=True)
     label = String()
     nodes = List(SubSchema(Stuff, allow_none=True))
Пример #14
0
    class Root(PolySchema):
        node = SubSchema(Node, allow_none=True)
        enabled = Boolean(default=False)
        category = String(required=True)

        __poly_on__ = category
Пример #15
0
 class S(Schema):
     foo = SubSchema('foo', registry=reg)