Skip to content

Commit

Permalink
refactor: refactoring initializeProperties func in jsonschema pkg (429)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatanabe committed Jul 9, 2023
1 parent 0b3bb55 commit 6179155
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jsonschema/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ func (d *Definition) initializeProperties() {
for k, v := range d.Properties {
if v.Properties == nil {
v.Properties = make(map[string]Definition)
d.Properties[k] = v
} else {
v.initializeProperties()
d.Properties[k] = v
}
d.Properties[k] = v
}
}

0 comments on commit 6179155

Please sign in to comment.