# How to use value.schema in Kafka connet

**URL:** https://forum.confluent.io/t/how-to-use-value-schema-in-kafka-connet/3280
**Category:** Kafka Connect
**Created:** [4 November 2021 00:12 UTC](https://forum.confluent.io/t/how-to-use-value-schema-in-kafka-connet/3280 "2021-11-04T00:12:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sam](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sam](https://forum.confluent.io/u/sam)
#### Post date: [4 November 2021 00:12 UTC](https://forum.confluent.io/t/how-to-use-value-schema-in-kafka-connet/3280/1 "2021-11-04T00:12:03Z")

</div>

HI there:  
We are now trying to provide the value schema and register the schema into schema registry. But when we set both value convert, schema registry url and value.schema. The schema not show in schema-registry. It is possible to do that? Or we are trying to use SMT to do that. Thanks a lot  
The source connector is below

```auto
{
  "name": "cdc-demo-debezium-db2-source-001",
  "config": {
    "connector.class": "com.github.jcustenborder.kafka.connect.spooldir.SpoolDirSchemaLessJsonSourceConnector",
    "tasks.max": "1",
    "topic": "provided_avro_2",
    "flush.size": "1",  
    "key.converter": "org.apache.kafka.connect.storage.StringConverter",
    "value.converter":"io.confluent.connect.avro.AvroConverter",
    "value.converter.schema.registry.url":"http://schema-registry:8081",
    "confluent.topic.bootstrap.servers": "broker:29092",
    "confluent.topic.replication.factor": "1",
    "input.path":"/data/shared/safe/input",
    "input.file.pattern": "input.json",
    "halt.on.error":"false",
    "error.path": "/data/shared/safe/error",
    "finished.path": "/data/shared/safe/finished",
    "value.schema":"{\n \"name\": \"MyClass\",\n \"type\": \"record\",\n \"namespace\": \"com.acme.avro\",\n \"fields\": [\n {\n \"name\": \"id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"batters\",\n \"type\": \"string\"\n }\n]\n}"
  }
}

```

 ![provided_avro](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/2X/9/93afddbbe39b85c371d35c77abb76acd8d210d14.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)
#### Post date: [4 December 2021 00:12 UTC](https://forum.confluent.io/t/how-to-use-value-schema-in-kafka-connet/3280/2 "2021-12-04T00:12:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
