@@ -485,6 +485,13 @@ data Schema = Schema
485 , _schemaParamSchema :: ParamSchema Schema
485 , _schemaParamSchema :: ParamSchema Schema
486 } deriving (Eq, Show, Generic, Data, Typeable)
486 } deriving (Eq, Show, Generic, Data, Typeable)
488+-- | A @'Schema'@ with an optional name.
489+-- This name can be used in references.
490+data NamedSchema = NamedSchema
491+ { _namedSchemaName :: Maybe Text
492+ , _namedSchemaSchema :: Schema
493+ } deriving (Eq, Show, Generic, Data, Typeable)
488data ParamSchema t = ParamSchema
495data ParamSchema t = ParamSchema
489 { -- | Declares the value of the parameter that the server will use if none is provided,
496 { -- | Declares the value of the parameter that the server will use if none is provided,
490 -- for example a @"count"@ to control the number of results per page might default to @100@
497 -- for example a @"count"@ to control the number of results per page might default to @100@