Skip to content

Commit

Permalink
Merge pull request #91 from nickman/master
Browse files Browse the repository at this point in the history
#90: Fix for: don't know how to handle schema type '[boolean]'
  • Loading branch information
jprobinson authored Oct 30, 2018
2 parents 3fba02e + 6ea8f83 commit 8fd8cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ func (c *compileCtx) compileSchema(name string, s *openapi.Schema) (protobuf.Typ
}
c.addType(m)
return m, nil
case s.Type.Contains("string") || s.Type.Contains("integer") || s.Type.Contains("number"):
case s.Type.Contains("string") || s.Type.Contains("integer") || s.Type.Contains("number") || s.Type.Contains("boolean"):
if len(s.Enum) > 0 {
name = strings.TrimSuffix(name, "Message")
t, err := c.compileEnum(name, s.Enum)
Expand Down

0 comments on commit 8fd8cb5

Please sign in to comment.