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

Additional property _transform is not allowed #511

Closed
black-snow opened this issue Oct 25, 2021 · 1 comment
Closed

Additional property _transform is not allowed #511

black-snow opened this issue Oct 25, 2021 · 1 comment

Comments

@black-snow
Copy link

I'm just starting with kong and I pulled a kong.yaml from the docs that should be fine:

_format_version: "2.1"
_transform: true

services:
- name: my-service
  url: https://example.com
  plugins:
  - name: key-auth
  routes:
  - name: my-route
    paths:
    - /

consumers:
- username: my-user
  keyauth_credentials:
  - key: my-key

But when I deck validate this thing I end up with:

Error: reading file: validating file content: 1 errors occurred:
        (root): Additional property _transform is not allowed

Shouldn't the declarative docs match what deck is capable of? Or is there some other issue?

decK v1.8.2 (b538f70)


P.S.: I also stumbled upon Error: reading state file: stat kong.yaml: no such file or directory because I named it kong.yml instead ... I'd open a PR to allow both if my go skill weren't about -1. ;)

@rainest
Copy link
Contributor

rainest commented Nov 5, 2021

Same issue as #510, continuing discussion there.

The state file name I don't think you can easily address because of the way our arg parser and file readers work--you could set an additional default, but since we allow multiple state files I believe that will make us attempt to read both rather than one or the other, and likely fail because only one is present.

@rainest rainest closed this as completed Nov 5, 2021
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