mulesoft-labs / osprey-method-handler

Middleware for validating requests and responses based on a RAML method object
Other
16 stars 16 forks source link

Issue validating against `!include`d JSON schemas in `types` #29

Closed jstoiko closed 6 years ago

jstoiko commented 7 years ago

E.g.

#%RAML 1.0
title: My api
baseUri: http://localhost:3000

types:
  Foo: !include schemas/foo.json

/foo:
  post:
    body:
      application/json:
        type: Foo

Either replacing foo.json by an equivalent RAML datatype foo.raml or replacing type: Foo by schema: !include schemas/foo.json works.

-- originally submitted here: https://github.com/mulesoft/osprey/issues/151