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

Try to expose JSON paths #173

Merged
merged 3 commits into from
Feb 26, 2023
Merged

Try to expose JSON paths #173

merged 3 commits into from
Feb 26, 2023

Conversation

yannh
Copy link
Owner

@yannh yannh commented Jan 24, 2023

{
  "resources": [
    {
      "filename": "./fixtures/invalid.yaml",
      "kind": "ReplicationController",
      "name": "123",
      "version": "v1",
      "status": "statusInvalid",
      "msg": "problem validating schema. Check JSON formatting: jsonschema: '/metadata/name' does not validate with https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone/replicationcontroller-v1.json#/properties/metadata/properties/name/type: expected string or null, but got number",
      "validationErrors": [
        {
          "Path": "/properties/metadata/properties/name/type",
          "Message": "expected string or null, but got number"
        },
        {
          "Path": "/properties/spec/properties/replicas/type",
          "Message": "expected integer or null, but got string"
        }
      ]
    }
  ],
  "summary": {
    "valid": 0,
    "invalid": 1,
    "errors": 0,
    "skipped": 0
  }
}

Copy link

@mhoran mhoran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would work for us!

@yannh yannh merged commit 563e1db into master Feb 26, 2023
@yannh yannh deleted the expose-err-json-paths-2 branch September 3, 2023 22:17
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

Successfully merging this pull request may close these issues.

2 participants