diff --git a/docs/api/latest.md b/docs/api/latest.md index 4ce46c71..0901853d 100644 --- a/docs/api/latest.md +++ b/docs/api/latest.md @@ -50,7 +50,7 @@ Examples EXAMPLE 1 ``` -@sink(type='inMemory', topic='stock', @map(type='avro',schema.def = """{"type":"record","name":"stock","namespace":"stock.example","fields":[{"name":"symbol","type":"string"},{"name":"price":"type":"float"},{"name":"volume","type":"long"}]}""")) +@sink(type='inMemory', topic='stock', @map(type='avro',schema.def = """{"type":"record","name":"stock","namespace":"stock.example","fields":[{"name":"symbol","type":"string"},{"name":"price","type":"float"},{"name":"volume","type":"long"}]}""")) define stream StockStream (symbol string, price float, volume long); ```

The above configuration performs a default Avro mapping that generates an Avro message as an output ByteBuffer.