forked from loafle/openapi-generator-original
Fix alias to map response (#1067)
* fix response reference to map * update samples * add null check for openapi
This commit is contained in:
@@ -1130,7 +1130,7 @@ data MapTest = MapTest
|
||||
{ mapTestMapMapOfString :: !(Maybe (Map.Map String (Map.Map String Text))) -- ^ "map_map_of_string"
|
||||
, mapTestMapOfEnumString :: !(Maybe (Map.Map String E'Inner)) -- ^ "map_of_enum_string"
|
||||
, mapTestDirectMap :: !(Maybe (Map.Map String Bool)) -- ^ "direct_map"
|
||||
, mapTestIndirectMap :: !(Maybe StringBooleanMap) -- ^ "indirect_map"
|
||||
, mapTestIndirectMap :: !(Maybe (Map.Map String Bool)) -- ^ "indirect_map"
|
||||
} deriving (P.Show, P.Eq, P.Typeable)
|
||||
|
||||
-- | FromJSON MapTest
|
||||
|
||||
@@ -543,7 +543,7 @@ mapTestDirectMapL f MapTest{..} = (\mapTestDirectMap -> MapTest { mapTestDirectM
|
||||
{-# INLINE mapTestDirectMapL #-}
|
||||
|
||||
-- | 'mapTestIndirectMap' Lens
|
||||
mapTestIndirectMapL :: Lens_' MapTest (Maybe StringBooleanMap)
|
||||
mapTestIndirectMapL :: Lens_' MapTest (Maybe (Map.Map String Bool))
|
||||
mapTestIndirectMapL f MapTest{..} = (\mapTestIndirectMap -> MapTest { mapTestIndirectMap, ..} ) <$> f mapTestIndirectMap
|
||||
{-# INLINE mapTestIndirectMapL #-}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user