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
andvalidateJSONWithPatternChecker
to validate JSONValue
againstSchema
without classes (see #126); - ➕ Add more
Schema
helpers (see #126):genericNameSchema
— to give a custom schemaGeneric
-based name;genericDeclareNamedSchemaNewtype
— to deriveNamedSchema
fornewtype
s;declareSchemaBoundedEnumKeyMapping
— to derive more specificSchema
for maps withBounded
Enum
keys;
- ➕ Add a few tests with invalid
Schema
.
- ➕ Add