Skip to content

Commit

Permalink
feat: Support skipping of type generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Jan 14, 2025
1 parent 51bf6ef commit a7cfa0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -881,9 +881,7 @@ func YamlToSchema(
err,
)
}
}

if keyNodeSchema.Type.IsEmpty() && !skipAutoGeneration.Type {
} else if !skipAutoGeneration.Type {
nodeType, err := typeFromTag(valueNode.Tag)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit a7cfa0b

Please sign in to comment.