flask/post+jsonschema报错:None is not of type 'object'
用python的unittest,对flask的post测试,testcase如下: def test_post_new_testCheckingService ( self ): rsp = self .app.post( '/test' , data =json.dumps(json_new)).data data = json.loads(rsp) self .assertEquals( 1 , data[ 'return_code' ]) 但是报错: [jenkins_bot@A04-R08-I53-67 testChecking]$ python test_testCheckingService.py ...WARNING: input json is invalid: (None is not of type 'object' Failed validating 'type' in schema: {'description': 'POST request coming in test service API', 'properties': {'note': {'description': 'The note for the operation', 'type': 'string'}, ...详细的jsonschema定义省略... 'title': ...