# SMT to apply Avro schema to schemaless message as input

**URL:** <https://forum.confluent.io/t/smt-to-apply-avro-schema-to-schemaless-message-as-input/2245>\
**Category:** Kafka Connect\
**Created:** [14 July 2021 08:19 UTC](https://forum.confluent.io/t/smt-to-apply-avro-schema-to-schemaless-message-as-input/2245 "2021-07-14T08:19:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whatsupbros](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/whatsupbros/32/239_2.png) [@whatsupbros](https://forum.confluent.io/u/whatsupbros)\
**Post date:** [14 July 2021 08:19 UTC](https://forum.confluent.io/t/smt-to-apply-avro-schema-to-schemaless-message-as-input/2245/1 "2021-07-14T08:19:43Z")

</div>

Hello colleagues!

Do you probably know about available **Single Message Transformation** , which can take raw schemaless message (being a structure in reality) and its Avro schema (fetched by provided URL) as input, and convert it to a properly structured Kafka Connect `STRUCT` (reflecting the provided schema)?

I found a [similar SMT](https://jcustenborder.github.io/kafka-connect-documentation/projects/kafka-connect-json-schema/transformations/FromJson.html), which takes JSON Schema as input for a schemaless JSON message and not Avro schema.

But is there probably the same thing taking Avro schema?

Thanks!

---

<div class="post-metadata">

**Author:** ![whatsupbros](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/whatsupbros/32/239_2.png) [@whatsupbros](https://forum.confluent.io/u/whatsupbros)\
**Post date:** [23 July 2021 10:16 UTC](https://forum.confluent.io/t/smt-to-apply-avro-schema-to-schemaless-message-as-input/2245/2 "2021-07-23T10:16:26Z")

</div>

Any ideas guys?

I mean, it does seem to me very general use-case.

---

<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:** [22 August 2021 10:16 UTC](https://forum.confluent.io/t/smt-to-apply-avro-schema-to-schemaless-message-as-input/2245/3 "2021-08-22T10:16:40Z")

</div>

Closed on 22 August 2021 10:16 UTC

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