We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AdditionalProperties
1 parent d5d9fa3 commit ab1c566Copy full SHA for ab1c566
pkg/generator/schema_generator.go
@@ -592,12 +592,17 @@ func (g *schemaGenerator) generateStructType(
592
}
593
594
595
+ tags := ""
596
+ for _, tag := range g.config.Tags {
597
+ tags += fmt.Sprintf(`%s:"-" `, tag)
598
+ }
599
structType.AddField(
600
codegen.StructField{
601
Name: "AdditionalProperties",
602
DefaultValue: defaultValue,
603
SchemaType: &schemas.Type{},
604
Type: fieldType,
605
+ Tags: tags,
606
},
607
)
608
0 commit comments