mikestowe / php-raml2html

A simple PHP library for publishing .RAML files as HTML API Documentation
62 stars 22 forks source link

Fixed overwriting of mapping key in includes. #19

Closed narrowway closed 6 years ago

narrowway commented 7 years ago

To meet the specification at https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#resolving-includes Examples:

resourceTypes: !include resourceTypes.raml

would have skipped the key resourceTypes, and included the content of the included file. if the file resourceTypes would start with resourceTypes: the node would have been completely deleted.

Same is true with other cases of file inclusion.

narrowway commented 7 years ago

f200b55 resolves issue #4