You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kiota requires the "explode" property to appear and be set to true, but setting it from code does not make the property show up in OAS.
Code to produce OAS:
operation.Parameters.Add(newOpenApiParameter{In=ParameterLocation.Query,Name="query",Style=ParameterStyle.Form,// added for KiotaExplode=true,// added for KiotaSchema=newOpenApiSchema{Type="object",AdditionalProperties=newOpenApiSchema{Type="string",Nullable=true},Example=newOpenApiNull()},Description="..."});
Hi @bkoelman,
Thanks for starting this side thread. From reading the specification it seems that explode's default value is true.
I'm suspecting that it's not being written for that reason to avoid making the document too verbose.
I'd like a confirmation from @MaggieKimani1 on that before we close the issue though.
Hi @bkoelman, Thanks for starting this side thread. From reading the specification it seems that explode's default value is true. I'm suspecting that it's not being written for that reason to avoid making the document too verbose. I'd like a confirmation from @MaggieKimani1 on that before we close the issue though.
Yes this is correct. If the the parameter style is form, then the explode value defaults to true hence we don't write it out.
Kiota requires the "explode" property to appear and be set to
true
, but setting it from code does not make the property show up in OAS.Code to produce OAS:
Expected OAS by Kiota:
Actual output:
I've created this issue as a follow-up to microsoft/kiota#3800 (comment).
@baywet can you please chime in and provide additional context if needed?
The text was updated successfully, but these errors were encountered: