---
title: "EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig"
url: "https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-for-event-gateways-1/versions/f4366232-3186-4be9-93bd-be3e4b16fb19/schemas/EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-for-event-gateways-1/versions/f4366232-3186-4be9-93bd-be3e4b16fb19.md

# EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

The configuration of the produce schema validation policy when using a schema registry.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect Control Planes Configuration for Event Gateways
  version: 1.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    SchemaRegistryReference:
      description: A reference to a schema Registry.
      oneOf:
        - $ref: "#/components/schemas/SchemaRegistryReferenceById"
        - $ref: "#/components/schemas/SchemaRegistryReferenceByName"
      x-terraform-preferred: "#/components/schemas/SchemaRegistryReferenceById"
    ProduceKeyValidationAction:
      description: >
        Defines a behavior when record key is not valid.

        * reject - rejects a batch for topic partition. Only available for
        produce.

        * mark - marks a record with kong/server header and client ID value
          to help to identify the clients violating schema.
      type: string
      enum:
        - reject
        - mark
    ProduceValueValidationAction:
      description: >
        Defines a behavior when record value is not valid.

        * reject - rejects a batch for topic partition. Only available for
        produce.

        * mark - marks a record with kong/server header and client ID value
          to help to identify the clients violating schema.
      type: string
      enum:
        - reject
        - mark
    SchemaRegistryReferenceById:
      type: object
      properties:
        id:
          description: The unique identifier of the schema registry.
          type: string
          format: uuid
          minLength: 1
      required:
        - id
    SchemaRegistryReferenceByName:
      description: Reference a schema registry by its unique name.
      type: object
      properties:
        name:
          description: The unique name of the schema registry.
          type: string
          maxLength: 255
          minLength: 1
      required:
        - name
    EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig:
      description: The configuration of the produce schema validation policy when
        using a schema registry.
      type: object
      properties:
        schema_registry:
          $ref: "#/components/schemas/SchemaRegistryReference"
        key_validation_action:
          $ref: "#/components/schemas/ProduceKeyValidationAction"
        value_validation_action:
          $ref: "#/components/schemas/ProduceValueValidationAction"
        type:
          type: string
          enum:
            - confluent_schema_registry
          x-terraform-transform-const: true
      required:
        - type
```
