{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-chrome/json-schema/google-chrome-google-chrome-policy-versions-v1-policy-schema-schema.json",
  "title": "GoogleChromePolicyVersionsV1PolicySchema",
  "description": "Resource representing a policy schema.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-chrome-chromepolicy-customers-api-openapi.yml#/components/schemas/GoogleChromePolicyVersionsV1PolicySchema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Format: name=customers/{customer}/policySchemas/{schema_namespace}"
    },
    "policyDescription": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. Description about the policy schema for user consumption."
    },
    "fieldDescriptions": {
      "description": "Output only. Detailed description of each field that is part of the schema. Fields are suggested to be displayed by the ordering in this list, not by field number.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicySchemaFieldDescription"
      },
      "readOnly": true
    },
    "additionalTargetKeyNames": {
      "type": "array",
      "description": "Output only. Additional key names that will be used to identify the target of the policy value. When specifying a `policyTargetKey`, each of the additional keys specified here will have to be included in the `additionalTargetKeys` map.",
      "items": {
        "$ref": "#/$defs/GoogleChromePolicyVersionsV1AdditionalTargetKeyName"
      },
      "readOnly": true
    },
    "supportUri": {
      "description": "Output only. URI to related support article for this schema.",
      "type": "string",
      "readOnly": true
    },
    "validTargetResources": {
      "items": {
        "type": "string",
        "enum": [
          "TARGET_RESOURCE_UNSPECIFIED",
          "ORG_UNIT",
          "GROUP"
        ]
      },
      "type": "array",
      "readOnly": true,
      "description": "Output only. Information about applicable target resources for the policy."
    },
    "schemaName": {
      "description": "Output only. The fully qualified name of the policy schema. This value is used to fill the field `policy_schema` in PolicyValue when calling BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies BatchModifyGroupPolicies or BatchDeleteGroupPolicies.",
      "type": "string",
      "readOnly": true
    },
    "definition": {
      "$ref": "#/$defs/Proto2FileDescriptorProto",
      "description": "Schema definition using proto descriptor."
    },
    "supportedPlatforms": {
      "type": "array",
      "description": "Output only. List indicates that the policy will only apply to devices/users on these platforms.",
      "items": {
        "enum": [
          "PLATFORM_UNSPECIFIED",
          "CHROME_OS",
          "CHROME_BROWSER",
          "CHROME_BROWSER_FOR_ANDROID",
          "CHROME_BROWSER_FOR_IOS"
        ],
        "type": "string"
      },
      "readOnly": true
    },
    "notices": {
      "type": "array",
      "description": "Output only. Special notice messages related to setting certain values in certain fields in the schema.",
      "items": {
        "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription"
      },
      "readOnly": true
    },
    "policyApiLifecycle": {
      "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicyApiLifecycle",
      "description": "Output only. Current lifecycle information."
    },
    "categoryTitle": {
      "type": "string",
      "description": "Title of the category in which a setting belongs."
    },
    "accessRestrictions": {
      "readOnly": true,
      "type": "array",
      "description": "Output only. Specific access restrictions related to this policy.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "GoogleChromePolicyVersionsV1AdditionalTargetKeyName": {
      "type": "object",
      "properties": {
        "keyDescription": {
          "type": "string",
          "description": "Key description."
        },
        "key": {
          "description": "Key name.",
          "type": "string"
        }
      },
      "description": "Additional key names that will be used to identify the target of the policy value."
    },
    "GoogleChromePolicyVersionsV1FieldConstraints": {
      "type": "object",
      "properties": {
        "numericRangeConstraint": {
          "$ref": "#/$defs/GoogleChromePolicyVersionsV1NumericRangeConstraint",
          "description": "The allowed range for numeric fields."
        },
        "uploadedFileConstraints": {
          "$ref": "#/$defs/GoogleChromePolicyVersionsV1UploadedFileConstraints",
          "description": "Constraints on the uploaded file of a file policy. If present, this policy requires a URL that can be fetched by uploading a file with the constraints specified in this proto."
        }
      },
      "description": "Information about any range constraints."
    },
    "GoogleChromePolicyVersionsV1NumericRangeConstraint": {
      "description": "A constraint on upper and/or lower bounds, with at least one being set.",
      "properties": {
        "minimum": {
          "format": "int64",
          "type": "string",
          "description": "Minimum value."
        },
        "maximum": {
          "type": "string",
          "format": "int64",
          "description": "Maximum value."
        }
      },
      "type": "object"
    },
    "GoogleChromePolicyVersionsV1PolicyApiLifecycle": {
      "description": "Lifecycle information.",
      "type": "object",
      "properties": {
        "endSupport": {
          "$ref": "#/$defs/GoogleTypeDate",
          "description": "End supporting date for current policy. Attempting to modify a policy after its end support date will result in a Bad Request (400 error). Could only be set if policy_api_lifecycle_stage is API_DEPRECATED."
        },
        "policyApiLifecycleStage": {
          "description": "Indicates current life cycle stage of the policy API.",
          "type": "string",
          "enum": [
            "API_UNSPECIFIED",
            "API_PREVIEW",
            "API_DEVELOPMENT",
            "API_CURRENT",
            "API_DEPRECATED"
          ]
        },
        "deprecatedInFavorOf": {
          "description": "In the event that this policy was deprecated in favor of another policy, the fully qualified namespace(s) of the new policies as they will show in PolicyAPI. Could only be set if policy_api_lifecycle_stage is API_DEPRECATED.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "scheduledToDeprecatePolicies": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Corresponding to deprecated_in_favor_of, the fully qualified namespace(s) of the old policies that will be deprecated because of introduction of this policy."
        },
        "description": {
          "description": "Description about current life cycle.",
          "type": "string"
        }
      }
    },
    "GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies": {
      "type": "object",
      "description": "The field and the value it must have for another field to be allowed to be set.",
      "properties": {
        "sourceField": {
          "description": "The source field which this field depends on.",
          "type": "string"
        },
        "sourceFieldValue": {
          "type": "string",
          "description": "The value which the source field must have for this field to be allowed to be set."
        }
      }
    },
    "GoogleChromePolicyVersionsV1PolicySchemaFieldDescription": {
      "properties": {
        "requiredItems": {
          "items": {
            "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicySchemaRequiredItems"
          },
          "readOnly": true,
          "type": "array",
          "description": "Output only. Provides a list of fields that are required to be set if this field has a certain value."
        },
        "fieldDependencies": {
          "type": "array",
          "description": "Output only. Provides a list of fields and values. At least one of the fields must have the corresponding value in order for this field to be allowed to be set.",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies"
          }
        },
        "inputConstraint": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Any input constraints associated on the values for the field."
        },
        "nestedFieldDescriptions": {
          "type": "array",
          "readOnly": true,
          "description": "Output only. Provides the description of the fields nested in this field, if the field is a message type that defines multiple fields. Fields are suggested to be displayed by the ordering in this list, not by field number.",
          "items": {
            "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicySchemaFieldDescription"
          }
        },
        "defaultValue": {
          "readOnly": true,
          "description": "Output only. Client default if the policy is unset."
        },
        "fieldDescription": {
          "readOnly": true,
          "description": "Output only. The description of the field.",
          "type": "string"
        },
        "fieldConstraints": {
          "$ref": "#/$defs/GoogleChromePolicyVersionsV1FieldConstraints",
          "description": "Output only. Information on any input constraints associated on the values for the field."
        },
        "description": {
          "type": "string",
          "description": "Deprecated. Use name and field_description instead. The description for the field.",
          "deprecated": true
        },
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The name of the field."
        },
        "field": {
          "description": "Output only. The name of the field for associated with this description.",
          "readOnly": true,
          "type": "string"
        },
        "knownValueDescriptions": {
          "items": {
            "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription"
          },
          "readOnly": true,
          "type": "array",
          "description": "Output only. If the field has a set of known values, this field will provide a description for these values."
        }
      },
      "type": "object",
      "description": "Provides detailed information for a particular field that is part of a PolicySchema."
    },
    "GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription": {
      "description": "Provides detailed information about a known value that is allowed for a particular field in a PolicySchema.",
      "properties": {
        "description": {
          "readOnly": true,
          "description": "Output only. Additional description for this value.",
          "type": "string"
        },
        "fieldDependencies": {
          "type": "array",
          "description": "Output only. Field conditions required for this value to be valid.",
          "items": {
            "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies"
          },
          "readOnly": true
        },
        "value": {
          "description": "Output only. The string represenstation of the value that can be set for the field.",
          "type": "string",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription": {
      "description": "Provides special notice messages related to a particular value in a field that is part of a PolicySchema.",
      "type": "object",
      "properties": {
        "acknowledgementRequired": {
          "readOnly": true,
          "description": "Output only. Whether the user needs to acknowledge the notice message before the value can be set.",
          "type": "boolean"
        },
        "noticeValue": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The value of the field that has a notice. When setting the field to this value, the user may be required to acknowledge the notice message in order for the value to be set."
        },
        "noticeMessage": {
          "description": "Output only. The notice message associate with the value of the field.",
          "type": "string",
          "readOnly": true
        },
        "field": {
          "description": "Output only. The field name associated with the notice.",
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "GoogleChromePolicyVersionsV1PolicySchemaRequiredItems": {
      "properties": {
        "fieldConditions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "The value(s) of the field that provoke required field enforcement. An empty field_conditions implies that any value assigned to this field will provoke required field enforcement."
        },
        "requiredFields": {
          "description": "The fields that are required as a consequence of the field conditions.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object",
      "description": "The fields that will become required based on the value of this field."
    },
    "GoogleChromePolicyVersionsV1UploadedFileConstraints": {
      "type": "object",
      "description": "Constraints on the uploaded file of a file policy.",
      "properties": {
        "sizeLimitBytes": {
          "type": "string",
          "description": "The size limit of uploaded files for a setting, in bytes.",
          "format": "int64"
        },
        "supportedContentTypes": {
          "items": {
            "type": "string",
            "enum": [
              "CONTENT_TYPE_UNSPECIFIED",
              "CONTENT_TYPE_PLAIN_TEXT",
              "CONTENT_TYPE_HTML",
              "CONTENT_TYPE_IMAGE_JPEG",
              "CONTENT_TYPE_IMAGE_GIF",
              "CONTENT_TYPE_IMAGE_PNG",
              "CONTENT_TYPE_JSON",
              "CONTENT_TYPE_ZIP",
              "CONTENT_TYPE_GZIP",
              "CONTENT_TYPE_CSV",
              "CONTENT_TYPE_YAML",
              "CONTENT_TYPE_IMAGE_WEBP"
            ]
          },
          "type": "array",
          "description": "File types that can be uploaded for a setting."
        }
      }
    },
    "GoogleTypeDate": {
      "properties": {
        "year": {
          "type": "integer",
          "format": "int32",
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year."
        },
        "day": {
          "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
          "format": "int32",
          "type": "integer"
        },
        "month": {
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
          "format": "int32",
          "type": "integer"
        }
      },
      "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
      "type": "object"
    },
    "Proto2DescriptorProto": {
      "properties": {
        "field": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Proto2FieldDescriptorProto"
          }
        },
        "visibility": {
          "description": "Support for `export` and `local` keywords on enums.",
          "enum": [
            "VISIBILITY_UNSET",
            "VISIBILITY_LOCAL",
            "VISIBILITY_EXPORT"
          ],
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "enumType": {
          "items": {
            "$ref": "#/$defs/Proto2EnumDescriptorProto"
          },
          "type": "array"
        },
        "oneofDecl": {
          "items": {
            "$ref": "#/$defs/Proto2OneofDescriptorProto"
          },
          "type": "array"
        },
        "nestedType": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Proto2DescriptorProto"
          }
        }
      },
      "description": "Describes a message type.",
      "type": "object"
    },
    "Proto2EnumDescriptorProto": {
      "description": "Describes an enum type.",
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "visibility": {
          "description": "Support for `export` and `local` keywords on enums.",
          "type": "string",
          "enum": [
            "VISIBILITY_UNSET",
            "VISIBILITY_LOCAL",
            "VISIBILITY_EXPORT"
          ]
        },
        "value": {
          "items": {
            "$ref": "#/$defs/Proto2EnumValueDescriptorProto"
          },
          "type": "array"
        }
      }
    },
    "Proto2EnumValueDescriptorProto": {
      "description": "Describes a value within an enum.",
      "properties": {
        "name": {
          "type": "string"
        },
        "number": {
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "Proto2FieldDescriptorProto": {
      "properties": {
        "defaultValue": {
          "description": "For numeric types, contains the original text representation of the value. For booleans, \"true\" or \"false\". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped.",
          "type": "string"
        },
        "typeName": {
          "type": "string",
          "description": "For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace)."
        },
        "label": {
          "type": "string",
          "enum": [
            "LABEL_OPTIONAL",
            "LABEL_REPEATED",
            "LABEL_REQUIRED"
          ]
        },
        "number": {
          "format": "int32",
          "type": "integer"
        },
        "oneofIndex": {
          "format": "int32",
          "type": "integer",
          "description": "If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof."
        },
        "jsonName": {
          "description": "JSON name of this field. The value is set by protocol compiler. If the user has set a \"json_name\" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.",
          "type": "string"
        },
        "type": {
          "description": "If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.",
          "enum": [
            "TYPE_DOUBLE",
            "TYPE_FLOAT",
            "TYPE_INT64",
            "TYPE_UINT64",
            "TYPE_INT32",
            "TYPE_FIXED64",
            "TYPE_FIXED32",
            "TYPE_BOOL",
            "TYPE_STRING",
            "TYPE_GROUP",
            "TYPE_MESSAGE",
            "TYPE_BYTES",
            "TYPE_UINT32",
            "TYPE_ENUM",
            "TYPE_SFIXED32",
            "TYPE_SFIXED64",
            "TYPE_SINT32",
            "TYPE_SINT64"
          ],
          "type": "string"
        },
        "proto3Optional": {
          "type": "boolean",
          "description": "If true, this is a proto3 \"optional\". When a proto3 field is optional, it tracks presence regardless of field type. When proto3_optional is true, this field must belong to a oneof to signal to old proto3 clients that presence is tracked for this field. This oneof is known as a \"synthetic\" oneof, and this field must be its sole member (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs exist in the descriptor only, and do not generate any API. Synthetic oneofs must be ordered after all \"real\" oneofs. For message fields, proto3_optional doesn't create any semantic change, since non-repeated message fields always track presence. However it still indicates the semantic detail of whether the user wrote \"optional\" or not. This can be useful for round-tripping the .proto file. For consistency we give message fields a synthetic oneof also, even though it is not required to track presence. This is especially important because the parser can't tell if a field is a message or an enum, so it must always create a synthetic oneof. Proto2 optional fields do not set this flag, because they already indicate optional with `LABEL_OPTIONAL`."
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object",
      "description": "Describes a field within a message."
    },
    "Proto2FileDescriptorProto": {
      "properties": {
        "syntax": {
          "description": "The syntax of the proto file. The supported values are \"proto2\", \"proto3\", and \"editions\". If `edition` is present, this value must be \"editions\". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.",
          "type": "string"
        },
        "enumType": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Proto2EnumDescriptorProto"
          }
        },
        "messageType": {
          "type": "array",
          "description": "All top-level definitions in this file.",
          "items": {
            "$ref": "#/$defs/Proto2DescriptorProto"
          }
        },
        "package": {
          "type": "string",
          "description": "e.g. \"foo\", \"foo.bar\", etc."
        },
        "name": {
          "description": "file name, relative to root of source tree",
          "type": "string"
        },
        "editionDeprecated": {
          "description": "copybara:strip_begin TODO(b/538805613) Deprecate and remove this field in favor of enums. copybara:strip_end",
          "type": "string",
          "deprecated": true
        },
        "optionDependency": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Names of files imported by this file purely for the purpose of providing option extensions. These are excluded from the dependency list above."
        }
      },
      "description": "Describes a complete .proto file.",
      "type": "object"
    },
    "Proto2OneofDescriptorProto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "description": "Describes a oneof."
    }
  }
}