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

includes in resource definitions #16

Open
harry-wood opened this issue May 6, 2016 · 1 comment
Open

includes in resource definitions #16

harry-wood opened this issue May 6, 2016 · 1 comment

Comments

@harry-wood
Copy link

I tried pointing php-raml2html at our TransportAPI RAML docs: http://transportapi.com/v3/raml/transportapi.raml

See it running here

It's saying Warning: Invalid argument supplied for foreach() in inc/raml.php on line 124 That's this line where it processes resource definitions.

A bit of debugging suggests it's struggling with the following line in the resource definitions of our RAML:
journey-public: !include resource_types/journey/public.raml

I imagine it's failing because we use an include in our RAML for the resource definition. Maybe these are not supported at all? Although I see some handleIncludes logic. We're using a relative path

Our RAML does work with the javascript api-console. See here

@mikestowe
Copy link
Owner

This is definitely a bug. Will work to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants