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 618e106Copy full SHA for 618e106
pkg/generator/schema_generator.go
@@ -592,12 +592,18 @@ func (g *schemaGenerator) generateStructType(
592
}
593
594
595
+ tags := ""
596
+ for _, tag := range g.config.Tags {
597
+ tags += fmt.Sprintf(`%s:"-" `, tag)
598
+ }
599
+
600
structType.AddField(
601
codegen.StructField{
602
Name: "AdditionalProperties",
603
DefaultValue: defaultValue,
604
SchemaType: &schemas.Type{},
605
Type: fieldType,
606
+ Tags: tags,
607
},
608
)
609
0 commit comments