autodocodec-openapi3 0.3.0.1 → 0.3.0.2
raw patch · 3 files changed
+17/−4 lines, 3 filesdep ~autodocodec
Dependency ranges changed: autodocodec
Files
- CHANGELOG.md +6/−0
- autodocodec-openapi3.cabal +3/−3
- src/Autodocodec/OpenAPI/Schema.hs +8/−1
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.3.0.2] - 2026-07-14++### Changed++* Lower bound on `autodocodec >=0.6`+ ## [0.3.0.1] - 2025-07-09 * Fix discriminated union OpenAPI schema generation (see #61 for more info)
autodocodec-openapi3.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.36.1.+-- This file has been generated from package.yaml by hpack version 0.38.3. -- -- see: https://github.com/sol/hpack name: autodocodec-openapi3-version: 0.3.0.1+version: 0.3.0.2 synopsis: Autodocodec interpreters for openapi3 homepage: https://github.com/NorfairKing/autodocodec#readme bug-reports: https://github.com/NorfairKing/autodocodec/issues@@ -34,7 +34,7 @@ src build-depends: aeson- , autodocodec >=0.4.0.0+ , autodocodec >=0.6.0.0 , base >=4.7 && <5 , insert-ordered-containers , lens
src/Autodocodec/OpenAPI/Schema.hs view
@@ -43,7 +43,14 @@ { _schemaType = Just OpenApiNull } BoolCodec mname -> lift $ NamedSchema mname <$> declareSchema (Proxy :: Proxy Bool)- StringCodec mname -> lift $ NamedSchema mname <$> declareSchema (Proxy :: Proxy Text)+ StringCodec mname StringBounds {..} -> do+ s <- lift $ declareSchema (Proxy :: Proxy Text)+ pure $+ NamedSchema mname $+ s+ { _schemaMinLength = fromIntegral <$> stringBoundsMinLength,+ _schemaMaxLength = fromIntegral <$> stringBoundsMaxLength+ } IntegerCodec mname mBounds -> do s <- lift $ declareSchema (Proxy :: Proxy Integer) let addNumberBounds Bounds {..} s_ =