raml-leanlabsio / raml2html

raml2html documentation generator
http://raml2html.leanlabs.io
MIT License
32 stars 9 forks source link

Generation fails with schema in sub-dir #9

Open ddossot opened 8 years ago

ddossot commented 8 years ago

My RAML spec includes schema files located in a subdirectory:

.
├── my_api.raml
└── schema
    ├── some_schema.jss

Generation fails with:

failed to open stream: No such file or directory in /{snip}/raml2html-php/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php on line 36
JSON schema not found at file:///{path to raml dir}/some_schema.jss

although RAML contains:

schemas:
  - some-schema:        !include schema/some_schema.jss

i.e. the schema sub-path is there but is ignored by the generator.