Unable to run swagger validator with matrix parameter

Issue #217 resolved
Former user created an issue

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)

  1. James Navin

    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.

  2. Log in to comment