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

yaml anchor replacements #171

Closed
reesew opened this issue Aug 26, 2015 · 2 comments
Closed

yaml anchor replacements #171

reesew opened this issue Aug 26, 2015 · 2 comments
Labels

Comments

@reesew
Copy link

reesew commented Aug 26, 2015

I don't know if this is an issue with api-console, or the raml spec, but I can't use yaml's ability to extend objects defined earlier, I get an error about only allowing scalar keys. Here's an example:

extendable: &extendable
  inherited: prop
extended:
  <<: *extendtable
  extra: prop0
items:
  - <<: *extendable
    extra: prop1
  - <<: *extendable
    extra: prop2

which should expand to

...
extended:
  inherited: prop
  extra: prop0
items:
  - inherited: prop
    extra: prop1
  - inherited: prop
    extra: prop2
@reesew
Copy link
Author

reesew commented Sep 3, 2015

I opened this issue here as well, since I found the error text there

@sichvoge
Copy link
Contributor

Thats probably more a spec and parser topic. AFAIK, the spec only allows scalar valued map keys.

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

No branches or pull requests

2 participants