File tree 5 files changed +108
-96
lines changed
5 files changed +108
-96
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " object" ,
3
+ "additionalProperties" : false ,
4
+ "anyOf" : [
5
+ {
6
+ "required" : [
7
+ " payload"
8
+ ]
9
+ },
10
+ {
11
+ "required" : [
12
+ " headers"
13
+ ]
14
+ }
15
+ ],
16
+ "properties" : {
17
+ "name" : {
18
+ "type" : " string" ,
19
+ "description" : " Machine readable name of the message example."
20
+ },
21
+ "summary" : {
22
+ "type" : " string" ,
23
+ "description" : " A brief summary of the message example."
24
+ },
25
+ "headers" : {
26
+ "type" : " object" ,
27
+ "description" : " Example of the application headers. It can be of any type."
28
+ },
29
+ "payload" : {
30
+ "description" : " Example of the message payload. It can be of any type."
31
+ }
32
+ },
33
+ "$schema" : " http://json-schema.org/draft-07/schema#" ,
34
+ "$id" : " http://asyncapi.com/definitions/3.0.0/messageExampleObject.json"
35
+ }
Original file line number Diff line number Diff line change 76
76
"type" : " array" ,
77
77
"description" : " List of examples." ,
78
78
"items" : {
79
- "type" : " object" ,
80
- "additionalProperties" : false ,
81
- "anyOf" : [
82
- {
83
- "required" : [
84
- " payload"
85
- ]
86
- },
87
- {
88
- "required" : [
89
- " headers"
90
- ]
91
- }
92
- ],
93
- "properties" : {
94
- "name" : {
95
- "type" : " string" ,
96
- "description" : " Machine readable name of the message example."
97
- },
98
- "summary" : {
99
- "type" : " string" ,
100
- "description" : " A brief summary of the message example."
101
- },
102
- "headers" : {
103
- "type" : " object" ,
104
- "description" : " Example of the application headers. It can be of any type."
105
- },
106
- "payload" : {
107
- "description" : " Example of the message payload. It can be of any type."
108
- }
109
- }
79
+ "$ref" : " http://asyncapi.com/definitions/3.0.0/messageExampleObject.json"
110
80
}
111
81
},
112
82
"bindings" : {
Original file line number Diff line number Diff line change 73
73
"type" : " array" ,
74
74
"description" : " List of examples." ,
75
75
"items" : {
76
- "type " : " object "
76
+ "$ref " : " http://asyncapi.com/definitions/3.0.0/messageExampleObject.json "
77
77
}
78
78
},
79
79
"bindings" : {
Original file line number Diff line number Diff line change 2572
2572
"type" : " array" ,
2573
2573
"description" : " List of examples." ,
2574
2574
"items" : {
2575
- "type" : " object" ,
2576
- "additionalProperties" : false ,
2577
- "anyOf" : [
2578
- {
2579
- "required" : [
2580
- " payload"
2581
- ]
2582
- },
2583
- {
2584
- "required" : [
2585
- " headers"
2586
- ]
2587
- }
2588
- ],
2589
- "properties" : {
2590
- "name" : {
2591
- "type" : " string" ,
2592
- "description" : " Machine readable name of the message example."
2593
- },
2594
- "summary" : {
2595
- "type" : " string" ,
2596
- "description" : " A brief summary of the message example."
2597
- },
2598
- "headers" : {
2599
- "type" : " object" ,
2600
- "description" : " Example of the application headers. It can be of any type."
2601
- },
2602
- "payload" : {
2603
- "description" : " Example of the message payload. It can be of any type."
2604
- }
2605
- }
2575
+ "$ref" : " #/definitions/messageExampleObject"
2606
2576
}
2607
2577
},
2608
2578
"bindings" : {
3564
3534
}
3565
3535
]
3566
3536
},
3537
+ "messageExampleObject" : {
3538
+ "type" : " object" ,
3539
+ "additionalProperties" : false ,
3540
+ "anyOf" : [
3541
+ {
3542
+ "required" : [
3543
+ " payload"
3544
+ ]
3545
+ },
3546
+ {
3547
+ "required" : [
3548
+ " headers"
3549
+ ]
3550
+ }
3551
+ ],
3552
+ "properties" : {
3553
+ "name" : {
3554
+ "type" : " string" ,
3555
+ "description" : " Machine readable name of the message example."
3556
+ },
3557
+ "summary" : {
3558
+ "type" : " string" ,
3559
+ "description" : " A brief summary of the message example."
3560
+ },
3561
+ "headers" : {
3562
+ "type" : " object" ,
3563
+ "description" : " Example of the application headers. It can be of any type."
3564
+ },
3565
+ "payload" : {
3566
+ "description" : " Example of the message payload. It can be of any type."
3567
+ }
3568
+ }
3569
+ },
3567
3570
"messageBindingsObject" : {
3568
3571
"type" : " object" ,
3569
3572
"description" : " Map describing protocol-specific definitions for a message." ,
4678
4681
"type" : " array" ,
4679
4682
"description" : " List of examples." ,
4680
4683
"items" : {
4681
- "type " : " object "
4684
+ "$ref " : " #/definitions/messageExampleObject "
4682
4685
}
4683
4686
},
4684
4687
"bindings" : {
Original file line number Diff line number Diff line change 2624
2624
"type" : " array" ,
2625
2625
"description" : " List of examples." ,
2626
2626
"items" : {
2627
- "type" : " object" ,
2628
- "additionalProperties" : false ,
2629
- "anyOf" : [
2630
- {
2631
- "required" : [
2632
- " payload"
2633
- ]
2634
- },
2635
- {
2636
- "required" : [
2637
- " headers"
2638
- ]
2639
- }
2640
- ],
2641
- "properties" : {
2642
- "name" : {
2643
- "type" : " string" ,
2644
- "description" : " Machine readable name of the message example."
2645
- },
2646
- "summary" : {
2647
- "type" : " string" ,
2648
- "description" : " A brief summary of the message example."
2649
- },
2650
- "headers" : {
2651
- "type" : " object" ,
2652
- "description" : " Example of the application headers. It can be of any type."
2653
- },
2654
- "payload" : {
2655
- "description" : " Example of the message payload. It can be of any type."
2656
- }
2657
- }
2627
+ "$ref" : " http://asyncapi.com/definitions/3.0.0/messageExampleObject.json"
2658
2628
}
2659
2629
},
2660
2630
"bindings" : {
3621
3591
}
3622
3592
]
3623
3593
},
3594
+ "http://asyncapi.com/definitions/3.0.0/messageExampleObject.json" : {
3595
+ "$id" : " http://asyncapi.com/definitions/3.0.0/messageExampleObject.json" ,
3596
+ "type" : " object" ,
3597
+ "additionalProperties" : false ,
3598
+ "anyOf" : [
3599
+ {
3600
+ "required" : [
3601
+ " payload"
3602
+ ]
3603
+ },
3604
+ {
3605
+ "required" : [
3606
+ " headers"
3607
+ ]
3608
+ }
3609
+ ],
3610
+ "properties" : {
3611
+ "name" : {
3612
+ "type" : " string" ,
3613
+ "description" : " Machine readable name of the message example."
3614
+ },
3615
+ "summary" : {
3616
+ "type" : " string" ,
3617
+ "description" : " A brief summary of the message example."
3618
+ },
3619
+ "headers" : {
3620
+ "type" : " object" ,
3621
+ "description" : " Example of the application headers. It can be of any type."
3622
+ },
3623
+ "payload" : {
3624
+ "description" : " Example of the message payload. It can be of any type."
3625
+ }
3626
+ }
3627
+ },
3624
3628
"http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json" : {
3625
3629
"$id" : " http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json" ,
3626
3630
"type" : " object" ,
4748
4752
"type" : " array" ,
4749
4753
"description" : " List of examples." ,
4750
4754
"items" : {
4751
- "type " : " object "
4755
+ "$ref " : " http://asyncapi.com/definitions/3.0.0/messageExampleObject.json "
4752
4756
}
4753
4757
},
4754
4758
"bindings" : {
You can’t perform that action at this time.
0 commit comments