@@ -485,6 +485,13 @@ data Schema = Schema
485485 , _schemaParamSchema :: ParamSchema Schema
486486 } deriving (Eq, Show, Generic, Data, Typeable)
487487
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)
494+
488495data ParamSchema t = ParamSchema
489496 { -- | Declares the value of the parameter that the server will use if none is provided,
490497 -- for example a @"count"@ to control the number of results per page might default to @100@