{
  "description": "ConsoleYAMLSample is an extension for customizing OpenShift web console YAML samples.\n\nCompatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "ConsoleYAMLSampleSpec is the desired YAML sample configuration.\nSamples will appear with their descriptions in a samples sidebar\nwhen creating a resources in the web console.",
      "properties": {
        "description": {
          "description": "description of the YAML sample.",
          "pattern": "^(.|\\s)*\\S(.|\\s)*$",
          "type": "string"
        },
        "snippet": {
          "description": "snippet indicates that the YAML sample is not the full YAML resource\ndefinition, but a fragment that can be inserted into the existing\nYAML document at the user's cursor.",
          "type": "boolean"
        },
        "targetResource": {
          "description": "targetResource contains apiVersion and kind of the resource\nYAML sample is representating.",
          "properties": {
            "apiVersion": {
              "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
              "type": "string"
            },
            "kind": {
              "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "title": {
          "description": "title of the YAML sample.",
          "pattern": "^(.|\\s)*\\S(.|\\s)*$",
          "type": "string"
        },
        "yaml": {
          "description": "yaml is the YAML sample to display.",
          "pattern": "^(.|\\s)*\\S(.|\\s)*$",
          "type": "string"
        }
      },
      "required": [
        "description",
        "targetResource",
        "title",
        "yaml"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
