Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive Include Support #8

Merged
merged 2 commits into from
May 26, 2015

Commits on May 16, 2015

  1. Recursive Include Support

    Right now, the support for `!include` only works at the first level and
    only supports including yaml (and json) files.
    
    This change should make it so that if you have a raml file with an
    include that pulls in a file that also has an include, it'll keep
    walking that tree.
    
    Also, it looks at the file extension and if it isn't `yaml`, `raml` or
    `json`, it assumes you just want to pull it in as a string, rather than
    make any attempt to parse it.
    Ben Hamill committed May 16, 2015
    Configuration menu
    Copy the full SHA
    7912817 View commit details
    Browse the repository at this point in the history
  2. Add Test for Recursive Include Support

    To guard against regression, and prove functionality, added a test and
    associated example data to make sure nested `!include` directives work
    and a test to make sure loading non-yaml and non-json files works.
    Ben Hamill committed May 16, 2015
    Configuration menu
    Copy the full SHA
    c034652 View commit details
    Browse the repository at this point in the history