示例#1
0
 def match(self, schema: Json):
     ref = schema.get("$ref")
     return ref in [
         "#/definitions/Image",
         "#/definitions/Images",
     ]
示例#2
0
 def match(self, schema: Json):
     ref = schema.get('$ref')
     return ref in [
         '#/definitions/Metadata',
         '#/definitions/Metadatas',
     ]
示例#3
0
 def match(self, schema: Json):
     return schema.get("type") == "object"
示例#4
0
 def match(self, schema: Json):
     return schema.get('type') == 'number'
示例#5
0
 def match(self, schema: Json):
     return schema.get("type") is not None
示例#6
0
 def match(self, schema: Json):
     return schema.get('type') == 'array'
示例#7
0
 def match(self, schema: Json):
     return schema.get('type') == 'string'