PayU / openapi-validator-middleware

Input validation using Swagger (Open API) and ajv
Apache License 2.0
144 stars 50 forks source link

Support for remote references #138

Closed hpl002 closed 4 years ago

hpl002 commented 4 years ago

Does the middleware support remote references, as allowed by the official spec: https://swagger.io/docs/specification/using-ref/

Remote Reference – $ref: 'document.json' Uses the whole document located on the same server and in the same location. The element of the document located in the same folder – $ref: 'document.json#/myElement' The element of the document located in the parent folder – $ref: '../document.json#/myElement' The element of the document located in another folder – $ref: '../another-folder/document.json#

What is the strategy for remote references?

Thanks!

kobik commented 4 years ago

Hi @hpl002.

It should be supported when calling initAsync instead of init.