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

Missing comma after empty array not detected as invalid #352

Closed
KirkMartinez opened this issue Aug 18, 2016 · 2 comments
Closed

Missing comma after empty array not detected as invalid #352

KirkMartinez opened this issue Aug 18, 2016 · 2 comments

Comments

@KirkMartinez
Copy link

KirkMartinez commented Aug 18, 2016

This .json passes validation with 2.6.2 even though it is missing a comma after the [](which causes the Chef knife command to subsequently fail):

{
  "name": "aname",
  "chef_environment": "anenv",
  "run_list": [
  "role[arole]"
]
,
  "normal": {
    "base": {
      "something": {
        "labels": "alabel"
      }
    },
    "tags": []
    "jlink": {
        "a": {
            "serial": "1"
        },
        "b": {
            "serial": "2"
        }
    }
  }
}
@iainbeeston
Copy link
Contributor

Sorry this sounds likean error with json parsing (ie. the json gem) rather than schema validation (ie json-schema).

Can you please give some example code where you're using this?

@iainbeeston
Copy link
Contributor

I'm closing this, as it appears to be an issue with the json gem rather than json schema

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