Skip to content

Commit

Permalink
Fix: additionalPropertis in openapi schema converted to uischema wron…
Browse files Browse the repository at this point in the history
…gly (#861)

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
  • Loading branch information
chivalryq committed Jul 22, 2023
1 parent 76a39a7 commit 3978079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/domain/service/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func renderUIParameter(key, label string, property *openapi3.SchemaRef, required
parameter.SubParameters = renderDefaultUISchema(property.Value)
}
var ap = property.Value.AdditionalProperties
if ap.Has != nil && *ap.Has && ap.Schema != nil && ap.Schema.Value != nil {
if ap.Schema != nil && ap.Schema.Value != nil {
value := ap.Schema.Value
parameter.SubParameters = renderDefaultUISchema(value)
var enable = true
Expand Down

0 comments on commit 3978079

Please sign in to comment.