{
  "description": "FirmwareSchema is the Schema for the firmwareschemas API.",
  "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": "FirmwareSchemaSpec defines the desired state of FirmwareSchema.",
      "properties": {
        "hardwareModel": {
          "description": "The hardware model associated with this schema",
          "type": "string"
        },
        "hardwareVendor": {
          "description": "The hardware vendor associated with this schema",
          "type": "string"
        },
        "schema": {
          "additionalProperties": {
            "description": "Additional data describing the firmware setting.",
            "properties": {
              "allowable_values": {
                "description": "The allowable value for an Enumeration type setting.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "attribute_type": {
                "description": "The type of setting.",
                "enum": [
                  "Enumeration",
                  "String",
                  "Integer",
                  "Boolean",
                  "Password"
                ],
                "type": "string"
              },
              "lower_bound": {
                "description": "The lowest value for an Integer type setting.",
                "type": "integer"
              },
              "max_length": {
                "description": "Maximum length for a String type setting.",
                "type": "integer"
              },
              "min_length": {
                "description": "Minimum length for a String type setting.",
                "type": "integer"
              },
              "read_only": {
                "description": "Whether or not this setting is read only.",
                "type": "boolean"
              },
              "unique": {
                "description": "Whether or not this setting's value is unique to this node, e.g.\na serial number.",
                "type": "boolean"
              },
              "upper_bound": {
                "description": "The highest value for an Integer type setting.",
                "type": "integer"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "description": "Map of firmware name to schema",
          "type": "object"
        }
      },
      "required": [
        "schema"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
