@@ -29,7 +29,7 @@ import SpecCommon
29import Test.Hspec
29import Test.Hspec
31import qualified Data.HashMap.Strict as HM
31import qualified Data.HashMap.Strict as HM
32−import Data.Time
32+import Data.Time.LocalTime
34checkToSchema :: ToSchema a => Proxy a -> Value -> Spec
34checkToSchema :: ToSchema a => Proxy a -> Value -> Spec
35checkToSchema proxy js = toSchema proxy <=> js
35checkToSchema proxy js = toSchema proxy <=> js
@@ -115,7 +115,7 @@ spec = do
115 context "MyRoseTree' (inlineNonRecursiveSchemas)" $ checkInlinedRecSchema (Proxy :: Proxy MyRoseTree') myRoseTreeSchemaJSON'
115 context "MyRoseTree' (inlineNonRecursiveSchemas)" $ checkInlinedRecSchema (Proxy :: Proxy MyRoseTree') myRoseTreeSchemaJSON'
116 describe "Bounded Enum key mapping" $ do
116 describe "Bounded Enum key mapping" $ do
117 context "ButtonImages" $ checkToSchema (Proxy :: Proxy ButtonImages) buttonImagesSchemaJSON
117 context "ButtonImages" $ checkToSchema (Proxy :: Proxy ButtonImages) buttonImagesSchemaJSON
118− context "TimeOfDay" $ checkToSchema (Proxy :: Proxy TimeOfDay ) (Object (HM.fromList [("example",String "12:33:15"),("format",String "hh:MM:ss"),("type",String "string")]))
118+ context "TimeOfDay" $ checkToSchema (Proxy :: Proxy Data.Time.LocalTime.TimeOfDay ) timeOfDaySchemaJSON
120main :: IO ()
120main :: IO ()
121main = hspec spec
121main = hspec spec