diff --git a/composite-swagger.cabal b/composite-swagger.cabal
--- a/composite-swagger.cabal
+++ b/composite-swagger.cabal
@@ -1,13 +1,13 @@
 cabal-version: 1.12
 
--- This file has been generated from package.yaml by hpack version 0.31.0.
+-- This file has been generated from package.yaml by hpack version 0.31.2.
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: ce20790d4c15e34872d0f1a00b39e6fb0773d027febd102e2b116642143f34d6
+-- hash: 5f7e0aa02554f85ebd087849caad8e1caaf1975bb3a526c3f3b960ae4a0799b0
 
 name:           composite-swagger
-version:        0.5.5.0
+version:        0.6.0.0
 synopsis:       Swagger for Vinyl/Frames records
 description:    Integration between Swagger and Vinyl/Frames records allowing easily derivable/explicit Swagger definitions for records.
 category:       Records
@@ -19,31 +19,34 @@
 build-type:     Simple
 
 library
+  exposed-modules:
+      Composite.Swagger
+      Composite.Swagger.Base
+      Composite.Swagger.OrphanInstances
+      Composite.Swagger.TH
+  other-modules:
+      Paths_composite_swagger
   hs-source-dirs:
       src
   default-extensions: DataKinds FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings PolyKinds ScopedTypeVariables StandaloneDeriving StrictData TemplateHaskell TupleSections TypeFamilies TypeOperators ViewPatterns
   ghc-options: -Wall -O2
   build-depends:
       base >=4.7 && <5
-    , composite-base >=0.5.3.0 && <0.6
+    , composite-base >=0.5.3.0 && <0.7
     , insert-ordered-containers >=0.2.1.0 && <0.3
-    , lens >=4.15.4 && <4.17
-    , swagger2 >=2.1.6 && <2.3
-    , template-haskell >=2.11.1.0 && <2.14
+    , lens >=4.15.4 && <4.18
+    , swagger2 >=2.1.6 && <2.5
+    , template-haskell >=2.11.1.0 && <2.15
     , text >=1.2.2.2 && <1.3
-    , vinyl >=0.5.3 && <0.9
-  exposed-modules:
-      Composite.Swagger
-      Composite.Swagger.Base
-      Composite.Swagger.OrphanInstances
-      Composite.Swagger.TH
-  other-modules:
-      Paths_composite_swagger
+    , vinyl >=0.5.3 && <0.12
   default-language: Haskell2010
 
 test-suite composite-swagger-test
   type: exitcode-stdio-1.0
   main-is: Main.hs
+  other-modules:
+      THSpec
+      Paths_composite_swagger
   hs-source-dirs:
       test
   default-extensions: DataKinds FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings PolyKinds ScopedTypeVariables StandaloneDeriving StrictData TemplateHaskell TupleSections TypeFamilies TypeOperators ViewPatterns
@@ -56,12 +59,9 @@
     , composite-swagger
     , hspec
     , insert-ordered-containers >=0.2.1.0 && <0.3
-    , lens >=4.15.4 && <4.17
-    , swagger2 >=2.1.6 && <2.3
-    , template-haskell >=2.11.1.0 && <2.14
+    , lens >=4.15.4 && <4.18
+    , swagger2 >=2.1.6 && <2.5
+    , template-haskell >=2.11.1.0 && <2.15
     , text >=1.2.2.2 && <1.3
-    , vinyl >=0.5.3 && <0.9
-  other-modules:
-      THSpec
-      Paths_composite_swagger
+    , vinyl >=0.5.3 && <0.12
   default-language: Haskell2010
diff --git a/src/Composite/Swagger/Base.hs b/src/Composite/Swagger/Base.hs
--- a/src/Composite/Swagger/Base.hs
+++ b/src/Composite/Swagger/Base.hs
@@ -1,6 +1,6 @@
 module Composite.Swagger.Base where
 
-import Control.Lens (Unwrapped, Wrapped, (&), (.~))
+import Control.Lens (Unwrapped, Wrapped, (&), (?~))
 import Composite.Swagger.OrphanInstances ()
 import Data.Proxy (Proxy (Proxy))
 import Data.Swagger
@@ -15,4 +15,4 @@
 wrappedSchema (Proxy :: Proxy wrap) name = do
   s <- declareSchema (Proxy :: Proxy (Unwrapped wrap))
   pure $ NamedSchema (Just $ Text.pack name) s
-    & type_ .~ SwaggerObject
+    & type_ ?~ SwaggerObject
