Closed alvassin closed 8 years ago
@dmartinezg I implemented support for all !include
-d schemas, they work correctly now.
As for inline-specified schemes, that have $refs (see below), I need this issue to be fixed.
After i will get some response from maintainers i will add support for such schemas too.
... raml definition ...
responses:
200:
body:
application/json:
schema: |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"items": {
"$ref": "./schemas/collections/items.json"
}
}
}
@dmartinezg please check code & tests, all cases should be covered now.
@alvassin, apologies for reviewing late, I've had a big mail backlog for the past few days.
I think it is ready to merge, have you signed this?: https://api-notebook.anypoint.mulesoft.com/notebooks#bc1cf75a0284268407e4
After you do that, I can merge, tag and deploy to npm
@dmartinezg you've got nice automation. Signed.
Oh, please, squash commits
@dmartinezg done.
@alvassin, thanks!
Added flag
dereferenceSchemas
, that allows to preprocess json-schemas and provide resolved $refs. Fixes #140