BSD-3-Clause licensed by Nickolay Kudasov
Maintained by [email protected]
This version can be pinned in stack with:swagger2-0.4@sha256:651f4f75aeb7f52a3ad34b83f286bceeb59688eb2d075be244be44afa3bcbcb7,2171

swagger2

Hackage Build Status

Swagger 2.0 data model.

Changes

0.4

  • Remove Swagger/swagger prefixes;
  • Add ToSchema type class with default generic implementation;
  • Add configurable generic ToSchema helpers;
  • Add doctest test suite;
  • Fixes:
    • Fix HasSchemaCommon instance for Schema;
    • Change minimum, maximum and multipleOf properties to be any number, not necessarily an integer;
    • Fix all warnings

0.3

  • Fixes:
    • Fix SwaggerMonoid Text instance;
    • Wrap Bool in Maybe everywhere;
    • These changes make all Data.Swagger Monoid instances obey monoid laws (previously right identity law was broken by some instances).

0.2

  • Add Data.Swagger.Lens
  • Support references
  • Fixes:
    • Fix FromJSON SwaggerHost instance
    • Add missing Maybes for field types
    • Decode petstore swagger.json successfully