git.iko.soy/typeable/openapi3
on master help sign in
Use empty items array for () schema
4139a57Nickolay Kudasov
src/Data/Swagger/Internal/Schema.hs+1
@@ -420,6 +420,7 @@ nullarySchema :: Schema
420nullarySchema = mempty
420nullarySchema = mempty
421 & schemaType .~ SwaggerArray
421 & schemaType .~ SwaggerArray
422 & schemaEnum ?~ [ toJSON () ]
422 & schemaEnum ?~ [ toJSON () ]
423+ & schemaItems ?~ SwaggerItemsArray []
423
424
424gtoNamedSchema :: GToSchema f => SchemaOptions -> proxy f -> NamedSchema
425gtoNamedSchema :: GToSchema f => SchemaOptions -> proxy f -> NamedSchema
425gtoNamedSchema opts proxy = undeclare $ gdeclareNamedSchema opts proxy mempty
426gtoNamedSchema opts proxy = undeclare $ gdeclareNamedSchema opts proxy mempty