Пример #1
0
class ParentWithNameSpace(Record):
    _namespace = "pyschema_test_parent"
    child = SubRecord(ChildWithOwnNameSpace)
    other = SubRecord(ChildWithSameNamespace)
Пример #2
0
class SelfReferencingRecord(Record):
    other_record = SubRecord(SELF)
Пример #3
0
class ChildWithOwnNameSpace(Record):
    _namespace = "test.pyschema_test_child"
    a = Integer()
    child = SubRecord(GrandChildWithOwnNameSpace)
Пример #4
0
class NestedListRecord(Record):
    l = List(SubRecord(TextRecord))
Пример #5
0
class Parent(Record):
    child = SubRecord(Child)
Пример #6
0
class SubRecordRecord(Record):
    r = SubRecord(TextRecord)
Пример #7
0
class NonnullableSubRecordRecord(Record):
    r = SubRecord(TextRecord, nullable=False)
Пример #8
0
class RepeatedSubRecordRecord(Record):
    r1 = SubRecord(TextRecord)
    r2 = SubRecord(TextRecord)
Пример #9
0
class NestedMapRecord(Record):
    m = Map(SubRecord(TextRecord))
Пример #10
0
class SubRecordRecord(Record):
    zeta = SubRecord(SimpleRecord)
Пример #11
0
class MyRecord2(Record):
    prop = SubRecord(MyRecord1)
Пример #12
0
class A(Record):
    b = List(Map(SubRecord(B)))