Skip to content

Commit

Permalink
Use empty items array for () schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Jan 16, 2016
1 parent a87f10d commit 4139a57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Data/Swagger/Internal/Schema.hs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ nullarySchema :: Schema
nullarySchema = mempty
& schemaType .~ SwaggerArray
& schemaEnum ?~ [ toJSON () ]
& schemaItems ?~ SwaggerItemsArray []

gtoNamedSchema :: GToSchema f => SchemaOptions -> proxy f -> NamedSchema
gtoNamedSchema opts proxy = undeclare $ gdeclareNamedSchema opts proxy mempty
Expand Down

0 comments on commit 4139a57

Please sign in to comment.