Skip to content

Commit

Permalink
Merge pull request #38 from wI2L/dev/rbeuque/typo
Browse files Browse the repository at this point in the history
typo: fixing typo Ennum -> Enum
  • Loading branch information
wI2L authored Apr 8, 2020
2 parents 7b0f612 + 5b8cbc6 commit e161069
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fizz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func TestSpecHandler(t *testing.T) {
"basePath": &openapi.ServerVariable{
Default: "v2",
Description: "version of the API",
Ennum: []string{"v1", "v2", "beta"},
Enum: []string{"v1", "v2", "beta"},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion openapi/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ func TestSetServers(t *testing.T) {
&Server{URL: "https://prod.api.foo.bar/{basePath}", Description: "Production server", Variables: map[string]*ServerVariable{
"basePath": &ServerVariable{
Description: "Version of the API",
Ennum: []string{
Enum: []string{
"v1", "v2", "beta",
},
Default: "v2",
Expand Down
2 changes: 1 addition & 1 deletion openapi/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type Server struct {
// ServerVariable represents a server variable for server
// URL template substitution.
type ServerVariable struct {
Ennum []string `json:"enum,omitempty" yaml:"enum,omitempty"`
Enum []string `json:"enum,omitempty" yaml:"enum,omitempty"`
Default string `json:"default" yaml:"default"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
}
Expand Down

0 comments on commit e161069

Please sign in to comment.