Skip to content

Commit

Permalink
adding missing case to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
injeniero committed Feb 9, 2024
1 parent 1e286aa commit 8162aaa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pkg/generators/models/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ var cases = []struct {
name: "example of nullable enum",
directory: "testdata/cases/enum_nullable",
},
{
name: "example of nullable and required combinations",
directory: "testdata/cases/required_nullable_combinations",
},
}

func TestModels(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ components:
enum:
- One
- Two
- null
Foo:
type: object
properties:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8162aaa

Please sign in to comment.