swagger2 v2.2.1 Release Notes

Release Date: 2018-03-21 // about 6 years ago
    • ➕ Add Semigroup instances
    • GHC-8.4 compatibility
    • 👀 `Schema (NonEmpty a) instance (see #141)
    • 🛠 Fix optional property for unary records (see #142)
    • ➕ Add fromAesonOptions helper (see #146)
    • 🛠 Fix non-termination when using datatypeNameModifier with recursive data types (see #132)

    2.2

    • 👀 Treat unknown properties as validation errors in validateToJSON (see #126);
    • ➕ Add validateJSON and validateJSONWithPatternChecker to validate JSON Value against Schema without classes (see #126);
    • ➕ Add more Schema helpers (see #126):
      • genericNameSchema — to give a custom schema Generic-based name;
      • genericDeclareNamedSchemaNewtype — to derive NamedSchema for newtypes;
      • declareSchemaBoundedEnumKeyMapping — to derive more specific Schema for maps with Bounded Enum keys;
    • ➕ Add a few tests with invalid Schema.