RepreZen / KaiZen-OpenApi-Parser

High-performance Parser, Validator, and Java Object Model for OpenAPI 3.x
130 stars 31 forks source link

Overlay.find method does not return elements for some existing paths #168

Open ghillairet opened 6 years ago

ghillairet commented 6 years ago

The method Overlay.find(model, path) does not return some elements even when the path is correct.

Consider the spec:

openapi: "3.0.0"
info:
  title: Simple API overview
  version: v2
paths:  
  /v2:
    get:
      responses:
        200:
          description: |-
            200 response

The following first test will pass whereas the second one will fail:

assertNotNull(Overlay.find(model, "/paths/~1v2"));
assertNotNull(Overlay.find(model, "/paths"));