{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-create-schema-input-schema.json",
  "title": "CreateSchemaInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-glue-aws-glue-x-amz-target-awsglue-createschema-api-api-openapi.yml#/components/schemas/CreateSchemaInput",
  "type": "object",
  "properties": {
    "RegistryId": {
      "$ref": "#/$defs/RegistryId"
    },
    "SchemaName": {
      "type": "string",
      "description": "Name of the schema to be created of max length of 255, and may only contain letters, numbers, hyphen, underscore, dollar sign, or hash mark. No whitespace."
    },
    "DataFormat": {
      "type": "string",
      "enum": [
        "AVRO",
        "JSON",
        "PROTOBUF"
      ],
      "description": "The data format of the schema definition. Currently AVRO, JSON and PROTOBUF are supported."
    },
    "Compatibility": {
      "type": "string",
      "enum": [
        "NONE",
        "DISABLED",
        "BACKWARD",
        "BACKWARD_ALL",
        "FORWARD",
        "FORWARD_ALL",
        "FULL",
        "FULL_ALL"
      ],
      "description": "The compatibility mode of the schema. The possible values are: NONE: No compatibility mode applies. You can use this choice in development scenarios or if you do not know the compatibility mode that you want to apply to schemas. Any new version added will be accepted without undergoing a compatibility check. DISABLED: This compatibility choice prevents versioning for a particular schema. You can use this choice to prevent future versioning of a schema. BACKWARD: This compatibility choice is recommended as it allows data receivers to read both the current and one previous schema version. This m"
    },
    "Description": {
      "type": "string",
      "description": "An optional description of the schema. If description is not provided, there will not be any automatic default value for this."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Amazon Web Services tags that contain a key value pair and may be searched by console, command line, or API. If specified, follows the Amazon Web Services tags-on-create pattern."
    },
    "SchemaDefinition": {
      "type": "string",
      "description": "The schema definition using the DataFormat setting for SchemaName."
    }
  },
  "required": [
    "SchemaName",
    "DataFormat"
  ],
  "$defs": {
    "RegistryId": {
      "type": "object",
      "properties": {
        "RegistryName": {
          "type": "string",
          "description": "Name of the registry. Used only for lookup. One of RegistryArn or RegistryName has to be provided."
        },
        "RegistryArn": {
          "type": "string",
          "description": "Arn of the registry to be updated. One of RegistryArn or RegistryName has to be provided."
        }
      }
    }
  }
}