File tree Expand file tree Collapse file tree 2 files changed +48
-1
lines changed
deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/wrapper
integration-tests/array-enum/src/main/openapi Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,14 @@ public void postProcess() {
142142
143143 }
144144
145+ @ Override
146+ public void postProcessModelProperty (CodegenModel model , CodegenProperty property ) {
147+ super .postProcessModelProperty (model , property );
148+ if ("set" .equals (property .containerType )) {
149+ model .imports .add ("Arrays" );
150+ }
151+ }
152+
145153 @ Override
146154 public CodegenModel fromModel (String name , Schema model ) {
147155 CodegenModel codegenModel = super .fromModel (name , model );
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ paths:
1717 required : true
1818 schema :
1919 $ref : ' #/components/schemas/webhook_create_update_payload'
20+ - name : data-set
21+ in : query
22+ required : false
23+ schema :
24+ $ref : ' #/components/schemas/webhook_create_update_set_payload'
2025 responses :
2126 " 200 " :
2227 description : OK
@@ -47,13 +52,47 @@ components:
4752 - message_created
4853 - message_updated
4954 - webwidget_triggered
55+ default :
56+ - conversation_created
57+ description : The events you want to subscribe to.
58+ message :
59+ type : array
60+ items :
61+ type : string
62+ description : Non required Field to safe messages
63+ messageMap :
64+ type : object
65+ additionalProperties : true
66+ description : Non required Map Field to safe messages
67+ webhook_create_update_set_payload :
68+ required : [url, subscriptions]
69+ type : object
70+ properties :
71+ url :
72+ type : string
73+ description : The url where the events should be sent
74+ subscriptions :
75+ type : array
76+ uniqueItems : true
77+ items :
78+ type : string
79+ enum :
80+ - conversation_created
81+ - conversation_status_changed
82+ - conversation_updated
83+ - message_created
84+ - message_updated
85+ - webwidget_triggered
86+ default :
87+ - conversation_created
5088 description : The events you want to subscribe to.
5189 message :
5290 type : array
91+ uniqueItems : true
5392 items :
5493 type : string
5594 description : Non required Field to safe messages
5695 messageMap :
5796 type : object
5897 additionalProperties : true
59- description : Non required Map Field to safe messages
98+ description : Non required Map Field to safe messages
You can’t perform that action at this time.
0 commit comments