Skip to content

Commit

Permalink
chore: remove added JSON examples
Browse files Browse the repository at this point in the history
Changes:

- removed the examples added through 4529772
- applied suggestion from: #1059 (comment)
  • Loading branch information
AnimeshKumar923 committed Jun 12, 2024
1 parent 544d999 commit a51107d
Showing 1 changed file with 0 additions and 67 deletions.
67 changes: 0 additions & 67 deletions spec/asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1869,38 +1869,6 @@ Name | Allowed values | Notes

<!-- asyncapi-example-tester:{"test":"Muti Format Schema Object - Avro","json_path":"$.channels"} -->

```json
"channels":{
"example": {
"messages": {
"myMessage": {
"payload": {
"schemaFormat": "application/vnd.apache.avro;version=1.9.0",
"schema": {
"type": "record",
"name": "User",
"namespace": "com.company",
"doc": "User information",
"fields": [
{
"name": "displayName",
"type": "string"
},
{
"name": "age",
"type": "int"
}
]
}
}
}
}
}
}
```

<!-- asyncapi-example-tester:{"test":"Muti Format Schema Object - Avro","json_path":"$.channels"} -->

```yaml
channels:
example:
Expand Down Expand Up @@ -2709,27 +2677,6 @@ Traits MUST be merged with the target object using the [JSON Merge Patch](https:

An object like the following:

<!-- asyncapi-example-tester:{"test":"Message Traits Object - merge mechanism","json_path":"$.components.messages.userSignUp"} -->
```json
{
"description": "A longer description.",
"traits": [
{
"name": "UserSignup",
"description": "Description from trait."
},
{
"tags": [
{
"name": "user"
}
]
}
]
}
```


```yaml
description: A longer description.
traits:
Expand All @@ -2741,20 +2688,6 @@ traits:

Would look like the following after applying traits:

<!-- asyncapi-example-tester:{"test":"Message Traits Object - merge mechanism","json_path":"$.components.messages.userSignUp"} -->
```json
{
"name": "UserSignup",
"description": "A longer description.",
"tags": [
{
"name": "user"
}
]
}
```


```yaml
name: UserSignup
description: A longer description.
Expand Down

0 comments on commit a51107d

Please sign in to comment.