@@ -289,15 +289,11 @@ data ParamOtherSchema = ParamOtherSchema
289289 -- Default value is @False@.
290290 , _paramOtherSchemaAllowEmptyValue :: Maybe Bool
291291
292− -- | __Required if type is @'ParamArray'@__.
293− -- Describes the type of items in the array.
294− , _paramOtherSchemaItems :: Maybe Items
295−
296292 -- | Determines the format of the array if @'ParamArray'@ is used.
297293 -- Default value is csv.
298294 , _paramOtherSchemaCollectionFormat :: Maybe CollectionFormat
299295
300− , _paramOtherSchemaCommon :: SchemaCommon ParamType
296+ , _paramOtherSchemaCommon :: SchemaCommon ParamType Items
301297 } deriving (Eq, Show, Generic)
302298
303299data ParamType
@@ -375,7 +371,6 @@ data Schema = Schema
375371 , _schemaDescription :: Maybe Text
376372 , _schemaRequired :: [ParamName]
377373
378− , _schemaItems :: Maybe SchemaItems
379374 , _schemaAllOf :: Maybe [Schema]
380375 , _schemaProperties :: HashMap Text (Referenced Schema)
381376 , _schemaAdditionalProperties :: Maybe Schema
@@ -389,7 +384,7 @@ data Schema = Schema
389384 , _schemaMaxProperties :: Maybe Integer
390385 , _schemaMinProperties :: Maybe Integer
391386
392− , _schemaSchemaCommon :: SchemaCommon SchemaType
387+ , _schemaSchemaCommon :: SchemaCommon SchemaType SchemaItems
393388 } deriving (Eq, Show, Generic)
394389
395390data SchemaItems
@@ -397,7 +392,7 @@ data SchemaItems
397392 | SchemaItemsArray [Referenced Schema]
398393 deriving (Eq, Show)
399394
400−data SchemaCommon typeDomain = SchemaCommon
395+data SchemaCommon typeDomain items = SchemaCommon
401396 { -- | Declares the value of the parameter that the server will use if none is provided,
402397 -- for example a @"count"@ to control the number of results per page might default to @100@
403398 -- if not supplied by the client in the request.
@@ -407,6 +402,7 @@ data SchemaCommon typeDomain = SchemaCommon
407402
408403 , _schemaCommonType :: typeDomain
409404 , _schemaCommonFormat :: Maybe Format
405+ , _schemaCommonItems :: Maybe items
410406 , _schemaCommonMaximum :: Maybe Scientific
411407 , _schemaCommonExclusiveMaximum :: Maybe Bool
412408 , _schemaCommonMinimum :: Maybe Scientific
@@ -450,15 +446,11 @@ data Xml = Xml
450446 } deriving (Eq, Show, Generic)
451447
452448data Items = Items
453− { -- | __Required if type is @'ItemsArray'@.__
454− -- Describes the type of items in the array.
455− _itemsItems :: Maybe Items
456−
457− -- | Determines the format of the array if type array is used.
449+ { -- | Determines the format of the array if type array is used.
458450 -- Default value is @'ItemsCollectionCSV'@.
459− , _itemsCollectionFormat :: Maybe ItemsCollectionFormat
451+ _itemsCollectionFormat :: Maybe ItemsCollectionFormat
460452
461− , _itemsCommon :: SchemaCommon ItemsType
453+ , _itemsCommon :: SchemaCommon ItemsType Items
462454 } deriving (Eq, Show, Generic)
463455
464456-- | A container for the expected responses of an operation.
@@ -504,15 +496,11 @@ data Header = Header
504496 { -- | A short description of the header.
505497 _headerDescription :: Maybe Text
506498
507− -- | __Required if type is @'ItemsArray'@__.
508− -- Describes the type of items in the array.
509− , _headerItems :: Maybe Items
510−
511499 -- | Determines the format of the array if type array is used.
512500 -- Default value is @'ItemsCollectionCSV'@.
513501 , _headerCollectionFormat :: Maybe ItemsCollectionFormat
514502
515− , _headerCommon :: SchemaCommon ItemsType
503+ , _headerCommon :: SchemaCommon ItemsType Items
516504 } deriving (Eq, Show, Generic)
517505
518506data Example = Example { getExample :: Map MediaType Value }
@@ -634,7 +622,7 @@ instance Monoid Schema where
634622 mempty = genericMempty
635623 mappend = genericMappend
636624
637−instance SwaggerMonoid t => Monoid (SchemaCommon t) where
625+instance SwaggerMonoid t => Monoid (SchemaCommon t i) where
638626 mempty = genericMempty
639627 mappend = genericMappend
640628
@@ -670,7 +658,7 @@ instance SwaggerMonoid Info
670658instance SwaggerMonoid Paths
671659instance SwaggerMonoid PathItem
672660instance SwaggerMonoid Schema
673−instance SwaggerMonoid t => SwaggerMonoid (SchemaCommon t)
661+instance SwaggerMonoid t => SwaggerMonoid (SchemaCommon t i)
674662instance SwaggerMonoid Param
675663instance SwaggerMonoid ParamOtherSchema
676664instance SwaggerMonoid Responses