Example #1
0
 def _pattern_properties_regexes(self):
     return [
         (re.compile('^[a-zA-Z0-9\\.\\-_]+$'),
          runtime.resolve_visitor('^[a-zA-Z0-9\\.\\-_]+$',
                                  cls=Schema,
                                  logger=logger)),
     ]
Example #2
0
 def _pattern_properties_regexes(self):
     return [
         (re.compile('^x-'),
          runtime.resolve_visitor('^x-',
                                  cls=Toplevel._PatternProperties_x,
                                  logger=logger)),
     ]
Example #3
0
 def _pattern_properties_regexes(self):
     return [
         (re.compile('^[a-zA-Z0-9\\.\\-_]+$'),
          runtime.resolve_visitor(
              '^[a-zA-Z0-9\\.\\-_]+$',
              cls=Toplevel._Properties._PatternProperties_aZAZ09,
              logger=logger)),
     ]
Example #4
0
 def required(self):
     return runtime.resolve_visitor('required',
                                    cls=Schema._Required,
                                    logger=logger)
Example #5
0
 def person(self):
     return runtime.resolve_visitor('person', cls=ComplexStructure._Person, logger=logger)
Example #6
0
 def patternProperties_a_zA_Z0_9(self):
     return runtime.resolve_visitor(
         'patternProperties/^[a-zA-Z0-9\\.\\-_]+$',
         cls=Toplevel._Properties._PatternProperties_aZAZ09,
         logger=logger)
Example #7
0
 def oneOf0(self):
     return runtime.resolve_visitor('oneOf0',
                                    cls=Schema,
                                    logger=logger)
Example #8
0
 def additionalProperties(self):
     return runtime.resolve_visitor('additionalProperties',
                                    cls=Schema._AdditionalProperties,
                                    logger=logger)
Example #9
0
 def patternProperties(self):
     return runtime.resolve_visitor('patternProperties',
                                    cls=Schema._PatternProperties,
                                    logger=logger)
Example #10
0
 def schema(self):
     return runtime.resolve_visitor('schema', cls=Schema, logger=logger)
Example #11
0
 def not_(self):
     return runtime.resolve_visitor('not', cls=Schema._Not, logger=logger)
Example #12
0
 def components(self):
     return runtime.resolve_visitor('components',
                                    cls=Components,
                                    logger=logger)
Example #13
0
 def patternProperties(self):
     return runtime.resolve_visitor('patternProperties',
                                    cls=Components._PatternProperties,
                                    logger=logger)
Example #14
0
 def schemas(self):
     return runtime.resolve_visitor('schemas',
                                    cls=Components._Schemas,
                                    logger=logger)
Example #15
0
 def patternProperties_a_zA_Z0_9(self):
     return runtime.resolve_visitor(
         'patternProperties/^[a-zA-Z0-9\\.\\-_]+$',
         cls=Components._Schemas._PatternProperties_aZAZ09,
         logger=logger)
Example #16
0
 def value(self):
     return runtime.resolve_visitor('value', cls=Value, logger=logger)
Example #17
0
 def oneOf1(self):
     return runtime.resolve_visitor('oneOf1', cls=Twotwo, logger=logger)
Example #18
0
 def patternProperties_x(self):
     return runtime.resolve_visitor('patternProperties/^x-',
                                    cls=Toplevel._PatternProperties_x,
                                    logger=logger)
Example #19
0
 def oneOf_0(self):
     return runtime.resolve_visitor(
         'oneOf/0',
         cls=Schema._AdditionalProperties._OneOf_0,
         logger=logger)
Example #20
0
 def mother(self):
     return runtime.resolve_visitor('mother', cls=Person, logger=logger)
Example #21
0
 def name(self):
     return runtime.resolve_visitor('name', cls=Name, logger=logger)
Example #22
0
 def parents(self):
     return runtime.resolve_visitor('parents', cls=People, logger=logger)
Example #23
0
 def oneOf1(self):
     return runtime.resolve_visitor('oneOf1',
                                    cls=Reference,
                                    logger=logger)
Example #24
0
 def oneOf2(self):
     return runtime.resolve_visitor('oneOf2',
                                    cls=PositiveInt,
                                    logger=logger)
Example #25
0
 def properties(self):
     return runtime.resolve_visitor('properties',
                                    cls=Toplevel._Properties,
                                    logger=logger)
Example #26
0
 def xof(self):
     return runtime.resolve_visitor('xof',
                                    cls=Structure._Xof,
                                    logger=logger)
Example #27
0
 def definitions(self):
     return runtime.resolve_visitor('definitions',
                                    cls=Toplevel._Definitions,
                                    logger=logger)
Example #28
0
 def oneOf1(self):
     return runtime.resolve_visitor('oneOf1',
                                    cls=Structure._Xof._OneOf_1,
                                    logger=logger)
Example #29
0
 def structure(self):
     return runtime.resolve_visitor('structure', cls=ComplexStructure, logger=logger)
Example #30
0
 def oneOf(self):
     return runtime.resolve_visitor('oneOf',
                                    cls=Schema._OneOf,
                                    logger=logger)