Skip to content

Commit

Permalink
Enlarge support for JSON Path in $ref resolution (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenollp authored Feb 25, 2021
1 parent 6d6f1ef commit bdba5d1
Show file tree
Hide file tree
Showing 9 changed files with 246 additions and 129 deletions.
2 changes: 1 addition & 1 deletion openapi3/discriminator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ var jsonSpecWithDiscriminator = []byte(`
func TestParsingDiscriminator(t *testing.T) {
loader, err := NewSwaggerLoader().LoadSwaggerFromData(jsonSpecWithDiscriminator)
require.NoError(t, err)
require.Equal(t, 2, len(loader.Components.Schemas["MyResponseType"].Value.OneOf))
require.Equal(t, 2, len(loader.Components.Schemas["MyResponseType"].Value.Discriminator.Mapping))
}
Loading

0 comments on commit bdba5d1

Please sign in to comment.