yannh / kubeconform

A FAST Kubernetes manifests validator, with support for Custom Resources!
Apache License 2.0
2.16k stars 121 forks source link

Try to expose JSON paths #173

Closed yannh closed 1 year ago

yannh commented 1 year ago
{
  "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
  }
}