- edited description
Unable to run swagger validator with matrix parameter
Issue #217
resolved
Unable to pass matrix parameter for Swagger Validator. Getting the below error while running with validation filter. The same works fine when i run it without validation filter
com.atlassian.oai.validator.restassured.SwaggerValidationFilter$SwaggerValidationException: Validation failed.
[ERROR] Invalid JSON Schema, cannot continue Syntax errors: [{
"level": "error",
"message": "string is not a valid URI: \"#/definitions/ABC Resource\"",
"domain": "syntax",
"schema": {
"loadingURI": "#",
"pointer": "/definitions/ABRequest/properties/AB/items"
},
"keyword": "$ref",
"value": "#/definitions/ABComments Resource"
}]
Comments (4)
-
-
Thanks for raising this.
It looks to me like the problem is actually the space in the JSON Pointer used to reference the
ABC Resource
definition.If possible, could you try removing the spaces from your definitions and see if that resolves the problem. If it does, feel free to raise another issue around the handling of whitespace in the JSON pointers.
Thanks.
-
I have similar issue. I can confirm after removing the space validation works.
-
- changed status to resolved
Problem is with unencoded spaces in the JSON pointer URI, not the matrix parameter behavior.
- Log in to comment