library expects a definition section in swagger file

Issue #74 resolved
Arash Bizhan created an issue

I have to have a definition section in the swagger file, or the test fails with

com.atlassian.oai.validator.mockmvc.SwaggerMatchers$SwaggerValidationException: Validation failed.
[ERROR] Invalid JSON Schema, cannot continue
    Syntax errors:
    [ {
      "level" : "error",
      "message" : "value has incorrect type (found null, expected one of [object])",
      "domain" : "syntax",
      "schema" : {
        "loadingURI" : "#",
        "pointer" : ""
      },
      "keyword" : "definitions",
      "found" : "null",
      "expected" : [ "object" ]
    } ]

Comments (3)

  1. Log in to comment