Skip to content

Commit

Permalink
Fix headings in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuvindu committed Apr 5, 2024
1 parent b888813 commit cce22d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Avro is an open-source data serialization system that enables efficient binary s

The Ballerina Avro module provides the capability to efficiently serialize and deserialize data using Avro schemas.

### Schema
## Schema

`Schema` is will take the Avro schema in string format. And will return an error if the schema is not a valid Avro schema. The client can be used to serialize and deserilize data and the data should be in the correct format.

Expand All @@ -22,12 +22,12 @@ A `Schema` can be defined using the string value of an Avro schema as shown belo
avro:Schema schema = check new(string `{"type": "int", "name" : "intValue", "namespace": "data" }`);
```

### APIs associated with Avro
## APIs associated with Avro

- **toAvro**: Serializes the given data according to the Avro format.
- **fromAvro**: Deserializes the given Avro encoded message to the given data type.

#### `toAvro`
### `toAvro`

Serializes the given data according to the Avro format.

Expand All @@ -40,7 +40,7 @@ public function main() returns error? {
}
```

#### `fromAvro`
### `fromAvro`

Deserializes the given Avro encoded message to the given data type.

Expand Down

0 comments on commit cce22d8

Please sign in to comment.