Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Stojanov <[email protected]>
  • Loading branch information
losisin committed Aug 30, 2024
1 parent e7a1f41 commit 07d18de
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pkg/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,9 @@ func parseNode(keyNode *yaml.Node, valNode *yaml.Node) (*Schema, bool) {
}
}

if !schema.Hidden {
schema.Type = "object"
if schema.SkipProperties {
schema.Properties = nil
} else {
schema.Properties = properties
}
}
schema.Type = "object"
schema.Properties = properties

if len(required) > 0 {
schema.Required = required
}
Expand Down

0 comments on commit 07d18de

Please sign in to comment.