Closed rsukla-handy closed 8 years ago
I am trying to follow the test example from here to validate my schema. But I am getting an error
"Name {0} is not a named validator type!".format(name)) ValueError: Name json_schema is not a named validator type!
So I looked up the validators.py file but I couldn't find anything for json_schema ? Could you tell me how we can do the schema tests??
validators.py
json_schema
Where is the code for json_schema ? the below code is from validators.py file
register_extractor('jsonpath_mini', MiniJsonExtractor.parse) register_extractor('header', HeaderExtractor.parse) register_extractor('raw_body', RawBodyExtractor.parse) register_validator('comparator', ComparatorValidator.parse) register_validator('compare', ComparatorValidator.parse) register_validator('assertEqual', ComparatorValidator.parse) register_validator('extract_test', ExtractTestValidator.parse) register_validator('assertTrue', ExtractTestValidator.parse)```
Hi @rsukla-handy - do you have the jsonschema library installed and available to python, per the docs ?
please close it, the issue is resolved.
I am trying to follow the test example from here to validate my schema. But I am getting an error
"Name {0} is not a named validator type!".format(name)) ValueError: Name json_schema is not a named validator type!
So I looked up the
validators.py
file but I couldn't find anything forjson_schema
? Could you tell me how we can do the schema tests??Where is the code for json_schema ? the below code is from
validators.py
file