Skip to content

Commit

Permalink
feat: bool add OpenAPISchemaType
Browse files Browse the repository at this point in the history
  • Loading branch information
khlipeng authored Jun 12, 2023
1 parent aa2c0f3 commit a6811e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datatypes/bool.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ var _ interface {
json.Marshaler
} = (*Bool)(nil)

func (Bool) OpenAPISchemaType() []string {
return []string{"boolean"}
}

func (v Bool) MarshalText() ([]byte, error) {
switch v {
case BOOL_FALSE:
Expand Down

0 comments on commit a6811e7

Please sign in to comment.