Skip to content

Commit

Permalink
Fixed inconsistent Schema names.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnsonaz committed Aug 8, 2022
1 parent 9bd1d26 commit b16a515
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions parser/schema_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ func (p *SchemaParser) AddEndpoint(key string, path *openapi3.PathItem) {
}
}

func (p *SchemaParser) Add(name string, schemaRef *openapi3.SchemaRef, display bool) *entity.Schema {
func (p *SchemaParser) Add(key string, schemaRef *openapi3.SchemaRef, display bool) *entity.Schema {
schema := schemaRef.Value
ref := schemaRef.Ref
name := GetSchemaName(ref)
if name == "" {
name = GetSchemaName(ref)
name = key
}
name = GetPropertyName(name)

Expand Down

0 comments on commit b16a515

Please sign in to comment.