Skip to content

Commit

Permalink
lowercase names
Browse files Browse the repository at this point in the history
  • Loading branch information
emil.gelman committed Oct 28, 2021
1 parent 5298943 commit 8a22613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mapper/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ func (m *Mapper) createDefinitionsStack(definitions map[string]common.OpenAPIDef
var stack []SchemaDefinition
for name := range definitions {
definition := definitions[name]
stack = append(stack, SchemaDefinition{Name: name, Definition: definition})
stack = append(stack, SchemaDefinition{Name: strings.ToLower(name), Definition: definition})
for _, dependency := range definition.Dependencies {
stack = append(stack, SchemaDefinition{Name: dependency, Definition: definitions[dependency]})
stack = append(stack, SchemaDefinition{Name: strings.ToLower(dependency), Definition: definitions[dependency]})
}
}
return stack
Expand Down

0 comments on commit 8a22613

Please sign in to comment.