mirror of
https://github.com/ilyakooo0/deriving-openapi3.git
synced 2024-09-11 10:25:55 +03:00
Fixed RejectUnknownFields and bumped snapshot
This commit is contained in:
parent
c0c7c3d300
commit
b353cefc47
@ -72,6 +72,7 @@ instance OpenApiOptions xs => OpenApiOptions (OmitNothingFields ': xs) where
|
||||
|
||||
instance OpenApiOptions xs => OpenApiOptions (RejectUnknownFields ': xs) where
|
||||
openApiOptions = openApiOptions @xs
|
||||
openApiSchemaModifier = schema . additionalProperties .~ Just (AdditionalPropertiesAllowed False)
|
||||
|
||||
instance (StringModifier f, OpenApiOptions xs) => OpenApiOptions (FieldLabelModifier f ': xs) where
|
||||
openApiOptions = (openApiOptions @xs) {fieldLabelModifier = getStringModifier @f}
|
||||
|
@ -1,4 +1,4 @@
|
||||
resolver: lts-16.26
|
||||
resolver: lts-18.21
|
||||
|
||||
packages:
|
||||
- .
|
||||
|
Loading…
Reference in New Issue
Block a user