@@ -44,6 +44,8 @@ flatten s = do
44 -- The horror.
44 -- The horror.
45 ss <- use schemas
45 ss <- use schemas
47 let d = (s ^. sDescription)
49 let d = (s ^. sDescription)
48 { _dSchemas = Map.fromList $ map (join (,)) (Map.keys ss)
50 { _dSchemas = Map.fromList $ map (join (,)) (Map.keys ss)
49 , _dParameters = ps
51 , _dParameters = ps
@@ -82,7 +84,7 @@ schema g ml (Fix f) = go f >>= insert this
82 SObj i o -> SObj i <$> object o
84 SObj i o -> SObj i <$> object o
84 array (Arr e) =
86 array (Arr e) =
85− Arr <$> localSchema this "item" (setRequired e)
87+ Arr <$> schema this (Just "item") (setRequired e)
87 object (Obj aps ps) =
89 object (Obj aps ps) =
88 Obj Nothing <$> Map.traverseWithKey (localSchema this) ps
90 Obj Nothing <$> Map.traverseWithKey (localSchema this) ps
@@ -176,5 +178,5 @@ insert g s = do
177 exists n x =
179 exists n x =
178 format ("Schema exists: " % stext % " - " % gid %
180 format ("Schema exists: " % stext % " - " % gid %
179− "\nCurrent: " % shown % "\nTried: " % shown)
181+ "\n\n[Current]\n" % shown % "\n[Tried]\n\n" % shown)