Yoga.HTTP.API.Route.OpenAPIMetadata
- Package
- purescript-yoga-http-api
- Repository
- rowtype-yoga/purescript-yoga-http-api
#HasDescription Source
class HasDescription ty whereMembers
description :: Proxy ty -> Maybe String
Instances
(IsSymbol desc) => HasDescription (Description desc a)(HasDescription a) => HasDescription (Example ex a)(HasDescription a) => HasDescription (Format fmt a)(HasDescription a) => HasDescription (Minimum v a)(HasDescription a) => HasDescription (Maximum v a)(HasDescription a) => HasDescription (Pattern pat a)(HasDescription a) => HasDescription (MinLength v a)(HasDescription a) => HasDescription (MaxLength v a)(HasDescription a) => HasDescription (Title t a)(HasDescription a) => HasDescription (Nullable a)(HasDescription a) => HasDescription (Default val a)(HasDescription a) => HasDescription (Deprecated a)(HasDescription a) => HasDescription (Enum a)(HasDescription a) => HasDescription (Schema name a)HasDescription ty
#HasExample Source
class HasExample ty whereMembers
Instances
(IsSymbol ex) => HasExample (Example ex a)(HasExample a) => HasExample (Examples examplesRow a)(HasExample a) => HasExample (Description desc a)(HasExample a) => HasExample (Format fmt a)(HasExample a) => HasExample (Minimum v a)(HasExample a) => HasExample (Maximum v a)(HasExample a) => HasExample (Pattern pat a)(HasExample a) => HasExample (MinLength v a)(HasExample a) => HasExample (MaxLength v a)(HasExample a) => HasExample (Title t a)(HasExample a) => HasExample (Nullable a)(HasExample a) => HasExample (Default val a)(HasExample a) => HasExample (Deprecated a)(HasExample a) => HasExample (Enum a)(HasExample a) => HasExample (Schema name a)HasExample ty
#HasFormat Source
class HasFormat ty whereMembers
Instances
(IsSymbol fmt) => HasFormat (Format fmt a)(HasFormat a) => HasFormat (Description desc a)(HasFormat a) => HasFormat (Example ex a)(HasFormat a) => HasFormat (Minimum v a)(HasFormat a) => HasFormat (Maximum v a)(HasFormat a) => HasFormat (Pattern pat a)(HasFormat a) => HasFormat (MinLength v a)(HasFormat a) => HasFormat (MaxLength v a)(HasFormat a) => HasFormat (Title t a)(HasFormat a) => HasFormat (Nullable a)(HasFormat a) => HasFormat (Default val a)(HasFormat a) => HasFormat (Deprecated a)(HasFormat a) => HasFormat (Enum a)(HasFormat a) => HasFormat (Schema name a)HasFormat ty
#HasMinimum Source
class HasMinimum ty whereMembers
Instances
(Reflectable v Int) => HasMinimum (Minimum v a)(HasMinimum a) => HasMinimum (Description desc a)(HasMinimum a) => HasMinimum (Example ex a)(HasMinimum a) => HasMinimum (Format fmt a)(HasMinimum a) => HasMinimum (Maximum v a)(HasMinimum a) => HasMinimum (Pattern pat a)(HasMinimum a) => HasMinimum (MinLength v a)(HasMinimum a) => HasMinimum (MaxLength v a)(HasMinimum a) => HasMinimum (Title t a)(HasMinimum a) => HasMinimum (Nullable a)(HasMinimum a) => HasMinimum (Default val a)(HasMinimum a) => HasMinimum (Deprecated a)(HasMinimum a) => HasMinimum (Enum a)(HasMinimum a) => HasMinimum (Schema name a)HasMinimum ty
#HasMaximum Source
class HasMaximum ty whereMembers
Instances
(Reflectable v Int) => HasMaximum (Maximum v a)(HasMaximum a) => HasMaximum (Description desc a)(HasMaximum a) => HasMaximum (Example ex a)(HasMaximum a) => HasMaximum (Format fmt a)(HasMaximum a) => HasMaximum (Minimum v a)(HasMaximum a) => HasMaximum (Pattern pat a)(HasMaximum a) => HasMaximum (MinLength v a)(HasMaximum a) => HasMaximum (MaxLength v a)(HasMaximum a) => HasMaximum (Title t a)(HasMaximum a) => HasMaximum (Nullable a)(HasMaximum a) => HasMaximum (Default val a)(HasMaximum a) => HasMaximum (Deprecated a)(HasMaximum a) => HasMaximum (Enum a)(HasMaximum a) => HasMaximum (Schema name a)HasMaximum ty
#HasPattern Source
class HasPattern ty whereMembers
Instances
(IsSymbol pat) => HasPattern (Pattern pat a)(HasPattern a) => HasPattern (Description desc a)(HasPattern a) => HasPattern (Example ex a)(HasPattern a) => HasPattern (Format fmt a)(HasPattern a) => HasPattern (Minimum v a)(HasPattern a) => HasPattern (Maximum v a)(HasPattern a) => HasPattern (MinLength v a)(HasPattern a) => HasPattern (MaxLength v a)(HasPattern a) => HasPattern (Title t a)(HasPattern a) => HasPattern (Nullable a)(HasPattern a) => HasPattern (Default val a)(HasPattern a) => HasPattern (Deprecated a)(HasPattern a) => HasPattern (Enum a)(HasPattern a) => HasPattern (Schema name a)HasPattern ty
#HasMinLength Source
class HasMinLength ty whereMembers
Instances
(Reflectable v Int) => HasMinLength (MinLength v a)(HasMinLength a) => HasMinLength (Description desc a)(HasMinLength a) => HasMinLength (Example ex a)(HasMinLength a) => HasMinLength (Format fmt a)(HasMinLength a) => HasMinLength (Minimum v a)(HasMinLength a) => HasMinLength (Maximum v a)(HasMinLength a) => HasMinLength (Pattern pat a)(HasMinLength a) => HasMinLength (MaxLength v a)(HasMinLength a) => HasMinLength (Title t a)(HasMinLength a) => HasMinLength (Nullable a)(HasMinLength a) => HasMinLength (Default val a)(HasMinLength a) => HasMinLength (Deprecated a)(HasMinLength a) => HasMinLength (Enum a)(HasMinLength a) => HasMinLength (Schema name a)HasMinLength ty
#HasMaxLength Source
class HasMaxLength ty whereMembers
Instances
(Reflectable v Int) => HasMaxLength (MaxLength v a)(HasMaxLength a) => HasMaxLength (Description desc a)(HasMaxLength a) => HasMaxLength (Example ex a)(HasMaxLength a) => HasMaxLength (Format fmt a)(HasMaxLength a) => HasMaxLength (Minimum v a)(HasMaxLength a) => HasMaxLength (Maximum v a)(HasMaxLength a) => HasMaxLength (Pattern pat a)(HasMaxLength a) => HasMaxLength (MinLength v a)(HasMaxLength a) => HasMaxLength (Title t a)(HasMaxLength a) => HasMaxLength (Nullable a)(HasMaxLength a) => HasMaxLength (Default val a)(HasMaxLength a) => HasMaxLength (Deprecated a)(HasMaxLength a) => HasMaxLength (Enum a)(HasMaxLength a) => HasMaxLength (Schema name a)HasMaxLength ty
#HasTitle Source
class HasTitle ty whereMembers
Instances
(IsSymbol t) => HasTitle (Title t a)(HasTitle a) => HasTitle (Description desc a)(HasTitle a) => HasTitle (Example ex a)(HasTitle a) => HasTitle (Format fmt a)(HasTitle a) => HasTitle (Minimum v a)(HasTitle a) => HasTitle (Maximum v a)(HasTitle a) => HasTitle (Pattern pat a)(HasTitle a) => HasTitle (MinLength v a)(HasTitle a) => HasTitle (MaxLength v a)(HasTitle a) => HasTitle (Nullable a)(HasTitle a) => HasTitle (Default val a)(HasTitle a) => HasTitle (Deprecated a)(HasTitle a) => HasTitle (Enum a)(HasTitle a) => HasTitle (Schema name a)HasTitle ty
#HasNullable Source
class HasNullable ty whereMembers
Instances
HasNullable (Nullable a)(HasNullable a) => HasNullable (Description desc a)(HasNullable a) => HasNullable (Example ex a)(HasNullable a) => HasNullable (Format fmt a)(HasNullable a) => HasNullable (Minimum v a)(HasNullable a) => HasNullable (Maximum v a)(HasNullable a) => HasNullable (Pattern pat a)(HasNullable a) => HasNullable (MinLength v a)(HasNullable a) => HasNullable (MaxLength v a)(HasNullable a) => HasNullable (Title t a)(HasNullable a) => HasNullable (Default val a)(HasNullable a) => HasNullable (Deprecated a)(HasNullable a) => HasNullable (Enum a)(HasNullable a) => HasNullable (Schema name a)HasNullable ty
#HasDefault Source
class HasDefault ty whereMembers
Instances
(IsSymbol val) => HasDefault (Default val a)(HasDefault a) => HasDefault (Description desc a)(HasDefault a) => HasDefault (Example ex a)(HasDefault a) => HasDefault (Format fmt a)(HasDefault a) => HasDefault (Minimum v a)(HasDefault a) => HasDefault (Maximum v a)(HasDefault a) => HasDefault (Pattern pat a)(HasDefault a) => HasDefault (MinLength v a)(HasDefault a) => HasDefault (MaxLength v a)(HasDefault a) => HasDefault (Title t a)(HasDefault a) => HasDefault (Nullable a)(HasDefault a) => HasDefault (Deprecated a)(HasDefault a) => HasDefault (Enum a)(HasDefault a) => HasDefault (Schema name a)HasDefault ty
#HasDeprecated Source
class HasDeprecated ty whereMembers
deprecated :: Proxy ty -> Boolean
Instances
HasDeprecated (Deprecated a)(HasDeprecated a) => HasDeprecated (Description desc a)(HasDeprecated a) => HasDeprecated (Example ex a)(HasDeprecated a) => HasDeprecated (Format fmt a)(HasDeprecated a) => HasDeprecated (Minimum v a)(HasDeprecated a) => HasDeprecated (Maximum v a)(HasDeprecated a) => HasDeprecated (Pattern pat a)(HasDeprecated a) => HasDeprecated (MinLength v a)(HasDeprecated a) => HasDeprecated (MaxLength v a)(HasDeprecated a) => HasDeprecated (Title t a)(HasDeprecated a) => HasDeprecated (Nullable a)(HasDeprecated a) => HasDeprecated (Default val a)(HasDeprecated a) => HasDeprecated (Enum a)(HasDeprecated a) => HasDeprecated (Schema name a)HasDeprecated ty
#HasEnum Source
class HasEnum ty whereMembers
Instances
(Generic a rep, GenericEnumValues rep) => HasEnum (Enum a)(HasEnum a) => HasEnum (Description desc a)(HasEnum a) => HasEnum (Example ex a)(HasEnum a) => HasEnum (Format fmt a)(HasEnum a) => HasEnum (Minimum v a)(HasEnum a) => HasEnum (Maximum v a)(HasEnum a) => HasEnum (Pattern pat a)(HasEnum a) => HasEnum (MinLength v a)(HasEnum a) => HasEnum (MaxLength v a)(HasEnum a) => HasEnum (Title t a)(HasEnum a) => HasEnum (Nullable a)(HasEnum a) => HasEnum (Default val a)(HasEnum a) => HasEnum (Deprecated a)(HasEnum a) => HasEnum (Schema name a)HasEnum ty
#GenericEnumValues Source
class GenericEnumValues rep whereExtract enum values from a Generic sum type representation. Walks through GR.Sum constructors and collects constructor names.
Members
genericEnumValues :: Proxy rep -> Array String
Instances
(GenericEnumValues a, GenericEnumValues b) => GenericEnumValues (Sum a b)(IsSymbol name) => GenericEnumValues (Constructor name NoArguments)
#HasOperationMetadata Source
class HasOperationMetadata route whereMembers
operationMetadata :: Proxy route -> OperationMetadata
Instances
HasOperationMetadata route
#Description Source
data Description :: Symbol -> Type -> Typedata Description desc a
Attach a description to a type. Example: Int # Description "The unique identifier for a user"
Instances
(IsSymbol desc) => HasDescription (Description desc a)(HasExample a) => HasExample (Description desc a)(HasFormat a) => HasFormat (Description desc a)(HasMinimum a) => HasMinimum (Description desc a)(HasMaximum a) => HasMaximum (Description desc a)(HasPattern a) => HasPattern (Description desc a)(HasMinLength a) => HasMinLength (Description desc a)(HasMaxLength a) => HasMaxLength (Description desc a)(HasTitle a) => HasTitle (Description desc a)(HasNullable a) => HasNullable (Description desc a)(HasDefault a) => HasDefault (Description desc a)(HasDeprecated a) => HasDeprecated (Description desc a)(HasEnum a) => HasEnum (Description desc a)(HasExamples a) => HasExamples (Description desc a)(HasLinks a) => HasLinks (Description desc a)(HeaderValue a) => HeaderValue (Description desc a)(HeaderValueType a) => HeaderValueType (Description desc a)(ParseParam a) => ParseParam (Description desc a)(WriteForeign a) => WriteForeign (Description desc a)(ReadForeign a) => ReadForeign (Description desc a)
#Example Source
data Example :: Symbol -> Type -> Typedata Example exampleValue a
Attach an example value to a type. Example: Int # Example "123"
Instances
(HasDescription a) => HasDescription (Example ex a)(IsSymbol ex) => HasExample (Example ex a)(HasFormat a) => HasFormat (Example ex a)(HasMinimum a) => HasMinimum (Example ex a)(HasMaximum a) => HasMaximum (Example ex a)(HasPattern a) => HasPattern (Example ex a)(HasMinLength a) => HasMinLength (Example ex a)(HasMaxLength a) => HasMaxLength (Example ex a)(HasTitle a) => HasTitle (Example ex a)(HasNullable a) => HasNullable (Example ex a)(HasDefault a) => HasDefault (Example ex a)(HasDeprecated a) => HasDeprecated (Example ex a)(HasEnum a) => HasEnum (Example ex a)(HasExamples a) => HasExamples (Example ex a)(HasLinks a) => HasLinks (Example ex a)(HeaderValue a) => HeaderValue (Example ex a)(HeaderValueType a) => HeaderValueType (Example ex a)(ParseParam a) => ParseParam (Example ex a)(WriteForeign a) => WriteForeign (Example ex a)(ReadForeign a) => ReadForeign (Example ex a)
#Format Source
data Format :: Symbol -> Type -> Typedata Format formatStr a
Attach a format annotation to a type. Example: String # Format "email"
Instances
(HasDescription a) => HasDescription (Format fmt a)(HasExample a) => HasExample (Format fmt a)(IsSymbol fmt) => HasFormat (Format fmt a)(HasMinimum a) => HasMinimum (Format fmt a)(HasMaximum a) => HasMaximum (Format fmt a)(HasPattern a) => HasPattern (Format fmt a)(HasMinLength a) => HasMinLength (Format fmt a)(HasMaxLength a) => HasMaxLength (Format fmt a)(HasTitle a) => HasTitle (Format fmt a)(HasNullable a) => HasNullable (Format fmt a)(HasDefault a) => HasDefault (Format fmt a)(HasDeprecated a) => HasDeprecated (Format fmt a)(HasEnum a) => HasEnum (Format fmt a)(HasExamples a) => HasExamples (Format fmt a)(HasLinks a) => HasLinks (Format fmt a)(HeaderValue a) => HeaderValue (Format fmt a)(HeaderValueType a) => HeaderValueType (Format fmt a)(ParseParam a) => ParseParam (Format fmt a)(WriteForeign a) => WriteForeign (Format fmt a)(ReadForeign a) => ReadForeign (Format fmt a)
#Minimum Source
data Minimum :: Int -> Type -> Typedata Minimum minVal a
Set a minimum value constraint. Example: Int # Minimum 1
Instances
(HasDescription a) => HasDescription (Minimum v a)(HasExample a) => HasExample (Minimum v a)(HasFormat a) => HasFormat (Minimum v a)(Reflectable v Int) => HasMinimum (Minimum v a)(HasMaximum a) => HasMaximum (Minimum v a)(HasPattern a) => HasPattern (Minimum v a)(HasMinLength a) => HasMinLength (Minimum v a)(HasMaxLength a) => HasMaxLength (Minimum v a)(HasTitle a) => HasTitle (Minimum v a)(HasNullable a) => HasNullable (Minimum v a)(HasDefault a) => HasDefault (Minimum v a)(HasDeprecated a) => HasDeprecated (Minimum v a)(HasEnum a) => HasEnum (Minimum v a)(HasExamples a) => HasExamples (Minimum v a)(HasLinks a) => HasLinks (Minimum v a)(Reflectable v Int, HeaderValue a) => HeaderValue (Minimum v a)(HeaderValueType a) => HeaderValueType (Minimum v a)(Reflectable v Int, ParseParam a) => ParseParam (Minimum v a)(WriteForeign a) => WriteForeign (Minimum v a)(ReadForeign a) => ReadForeign (Minimum v a)
#Maximum Source
data Maximum :: Int -> Type -> Typedata Maximum maxVal a
Set a maximum value constraint. Example: Int # Maximum 100
Instances
(HasDescription a) => HasDescription (Maximum v a)(HasExample a) => HasExample (Maximum v a)(HasFormat a) => HasFormat (Maximum v a)(HasMinimum a) => HasMinimum (Maximum v a)(Reflectable v Int) => HasMaximum (Maximum v a)(HasPattern a) => HasPattern (Maximum v a)(HasMinLength a) => HasMinLength (Maximum v a)(HasMaxLength a) => HasMaxLength (Maximum v a)(HasTitle a) => HasTitle (Maximum v a)(HasNullable a) => HasNullable (Maximum v a)(HasDefault a) => HasDefault (Maximum v a)(HasDeprecated a) => HasDeprecated (Maximum v a)(HasEnum a) => HasEnum (Maximum v a)(HasExamples a) => HasExamples (Maximum v a)(HasLinks a) => HasLinks (Maximum v a)(Reflectable v Int, HeaderValue a) => HeaderValue (Maximum v a)(HeaderValueType a) => HeaderValueType (Maximum v a)(Reflectable v Int, ParseParam a) => ParseParam (Maximum v a)(WriteForeign a) => WriteForeign (Maximum v a)(ReadForeign a) => ReadForeign (Maximum v a)
#Pattern Source
data Pattern :: Symbol -> Type -> Typedata Pattern pat a
Set a regex pattern constraint. Example: String # Pattern "^[a-z]+$"
Instances
(HasDescription a) => HasDescription (Pattern pat a)(HasExample a) => HasExample (Pattern pat a)(HasFormat a) => HasFormat (Pattern pat a)(HasMinimum a) => HasMinimum (Pattern pat a)(HasMaximum a) => HasMaximum (Pattern pat a)(IsSymbol pat) => HasPattern (Pattern pat a)(HasMinLength a) => HasMinLength (Pattern pat a)(HasMaxLength a) => HasMaxLength (Pattern pat a)(HasTitle a) => HasTitle (Pattern pat a)(HasNullable a) => HasNullable (Pattern pat a)(HasDefault a) => HasDefault (Pattern pat a)(HasDeprecated a) => HasDeprecated (Pattern pat a)(HasEnum a) => HasEnum (Pattern pat a)(HasExamples a) => HasExamples (Pattern pat a)(HasLinks a) => HasLinks (Pattern pat a)(IsSymbol pat, HeaderValue a) => HeaderValue (Pattern pat a)(HeaderValueType a) => HeaderValueType (Pattern pat a)(IsSymbol pat, ParseParam a) => ParseParam (Pattern pat a)(WriteForeign a) => WriteForeign (Pattern pat a)(ReadForeign a) => ReadForeign (Pattern pat a)
#MinLength Source
data MinLength :: Int -> Type -> Typedata MinLength minLen a
Set a minimum string length constraint. Example: String # MinLength 1
Instances
(HasDescription a) => HasDescription (MinLength v a)(HasExample a) => HasExample (MinLength v a)(HasFormat a) => HasFormat (MinLength v a)(HasMinimum a) => HasMinimum (MinLength v a)(HasMaximum a) => HasMaximum (MinLength v a)(HasPattern a) => HasPattern (MinLength v a)(Reflectable v Int) => HasMinLength (MinLength v a)(HasMaxLength a) => HasMaxLength (MinLength v a)(HasTitle a) => HasTitle (MinLength v a)(HasNullable a) => HasNullable (MinLength v a)(HasDefault a) => HasDefault (MinLength v a)(HasDeprecated a) => HasDeprecated (MinLength v a)(HasEnum a) => HasEnum (MinLength v a)(HasExamples a) => HasExamples (MinLength v a)(HasLinks a) => HasLinks (MinLength v a)(Reflectable v Int, HeaderValue a) => HeaderValue (MinLength v a)(HeaderValueType a) => HeaderValueType (MinLength v a)(Reflectable v Int, ParseParam a) => ParseParam (MinLength v a)(WriteForeign a) => WriteForeign (MinLength v a)(ReadForeign a) => ReadForeign (MinLength v a)
#MaxLength Source
data MaxLength :: Int -> Type -> Typedata MaxLength maxLen a
Set a maximum string length constraint. Example: String # MaxLength 255
Instances
(HasDescription a) => HasDescription (MaxLength v a)(HasExample a) => HasExample (MaxLength v a)(HasFormat a) => HasFormat (MaxLength v a)(HasMinimum a) => HasMinimum (MaxLength v a)(HasMaximum a) => HasMaximum (MaxLength v a)(HasPattern a) => HasPattern (MaxLength v a)(HasMinLength a) => HasMinLength (MaxLength v a)(Reflectable v Int) => HasMaxLength (MaxLength v a)(HasTitle a) => HasTitle (MaxLength v a)(HasNullable a) => HasNullable (MaxLength v a)(HasDefault a) => HasDefault (MaxLength v a)(HasDeprecated a) => HasDeprecated (MaxLength v a)(HasEnum a) => HasEnum (MaxLength v a)(HasExamples a) => HasExamples (MaxLength v a)(HasLinks a) => HasLinks (MaxLength v a)(Reflectable v Int, HeaderValue a) => HeaderValue (MaxLength v a)(HeaderValueType a) => HeaderValueType (MaxLength v a)(Reflectable v Int, ParseParam a) => ParseParam (MaxLength v a)(WriteForeign a) => WriteForeign (MaxLength v a)(ReadForeign a) => ReadForeign (MaxLength v a)
#Title Source
data Title :: Symbol -> Type -> Typedata Title t a
Attach a title to a type. Example: String # Title "UserName"
Instances
(HasDescription a) => HasDescription (Title t a)(HasExample a) => HasExample (Title t a)(HasFormat a) => HasFormat (Title t a)(HasMinimum a) => HasMinimum (Title t a)(HasMaximum a) => HasMaximum (Title t a)(HasPattern a) => HasPattern (Title t a)(HasMinLength a) => HasMinLength (Title t a)(HasMaxLength a) => HasMaxLength (Title t a)(IsSymbol t) => HasTitle (Title t a)(HasNullable a) => HasNullable (Title t a)(HasDefault a) => HasDefault (Title t a)(HasDeprecated a) => HasDeprecated (Title t a)(HasEnum a) => HasEnum (Title t a)(HasExamples a) => HasExamples (Title t a)(HasLinks a) => HasLinks (Title t a)(HeaderValue a) => HeaderValue (Title t a)(HeaderValueType a) => HeaderValueType (Title t a)(ParseParam a) => ParseParam (Title t a)(WriteForeign a) => WriteForeign (Title t a)(ReadForeign a) => ReadForeign (Title t a)
#Nullable Source
data Nullable aMark a type as nullable. Example: String # Nullable
Instances
(HasDescription a) => HasDescription (Nullable a)(HasExample a) => HasExample (Nullable a)(HasFormat a) => HasFormat (Nullable a)(HasMinimum a) => HasMinimum (Nullable a)(HasMaximum a) => HasMaximum (Nullable a)(HasPattern a) => HasPattern (Nullable a)(HasMinLength a) => HasMinLength (Nullable a)(HasMaxLength a) => HasMaxLength (Nullable a)(HasTitle a) => HasTitle (Nullable a)HasNullable (Nullable a)(HasDefault a) => HasDefault (Nullable a)(HasDeprecated a) => HasDeprecated (Nullable a)(HasEnum a) => HasEnum (Nullable a)(HasExamples a) => HasExamples (Nullable a)(HasLinks a) => HasLinks (Nullable a)(HeaderValue a) => HeaderValue (Nullable a)(HeaderValueType a) => HeaderValueType (Nullable a)(ParseParam a) => ParseParam (Nullable a)(WriteForeign a) => WriteForeign (Nullable a)(ReadForeign a) => ReadForeign (Nullable a)
#Default Source
data Default :: Symbol -> Type -> Typedata Default val a
Set a default value. Example: Int # Default "10"
Instances
(HasDescription a) => HasDescription (Default val a)(HasExample a) => HasExample (Default val a)(HasFormat a) => HasFormat (Default val a)(HasMinimum a) => HasMinimum (Default val a)(HasMaximum a) => HasMaximum (Default val a)(HasPattern a) => HasPattern (Default val a)(HasMinLength a) => HasMinLength (Default val a)(HasMaxLength a) => HasMaxLength (Default val a)(HasTitle a) => HasTitle (Default val a)(HasNullable a) => HasNullable (Default val a)(IsSymbol val) => HasDefault (Default val a)(HasDeprecated a) => HasDeprecated (Default val a)(HasEnum a) => HasEnum (Default val a)(HasExamples a) => HasExamples (Default val a)(HasLinks a) => HasLinks (Default val a)(HeaderValue a) => HeaderValue (Default val a)(HeaderValueType a) => HeaderValueType (Default val a)(ParseParam a) => ParseParam (Default val a)(WriteForeign a) => WriteForeign (Default val a)(ReadForeign a) => ReadForeign (Default val a)
#Deprecated Source
data Deprecated aMark a type as deprecated. Example: Int # Deprecated
Instances
(HasDescription a) => HasDescription (Deprecated a)(HasExample a) => HasExample (Deprecated a)(HasFormat a) => HasFormat (Deprecated a)(HasMinimum a) => HasMinimum (Deprecated a)(HasMaximum a) => HasMaximum (Deprecated a)(HasPattern a) => HasPattern (Deprecated a)(HasMinLength a) => HasMinLength (Deprecated a)(HasMaxLength a) => HasMaxLength (Deprecated a)(HasTitle a) => HasTitle (Deprecated a)(HasNullable a) => HasNullable (Deprecated a)(HasDefault a) => HasDefault (Deprecated a)HasDeprecated (Deprecated a)(HasEnum a) => HasEnum (Deprecated a)(HasExamples a) => HasExamples (Deprecated a)(HasLinks a) => HasLinks (Deprecated a)(HeaderValue a) => HeaderValue (Deprecated a)(HeaderValueType a) => HeaderValueType (Deprecated a)(ParseParam a) => ParseParam (Deprecated a)(WriteForeign a) => WriteForeign (Deprecated a)(ReadForeign a) => ReadForeign (Deprecated a)
#Enum Source
data Enum aWrapper to use an enum type (sum type with no-argument constructors) in routes. The type parameter should be a Generic sum type, and enum values will be automatically extracted from its constructor names.
Example: data Status = Pending | Active | Completed derive instance Generic Status _
type StatusParam = Enum Status
Instances
(HasDescription a) => HasDescription (Enum a)(HasExample a) => HasExample (Enum a)(HasFormat a) => HasFormat (Enum a)(HasMinimum a) => HasMinimum (Enum a)(HasMaximum a) => HasMaximum (Enum a)(HasPattern a) => HasPattern (Enum a)(HasMinLength a) => HasMinLength (Enum a)(HasMaxLength a) => HasMaxLength (Enum a)(HasTitle a) => HasTitle (Enum a)(HasNullable a) => HasNullable (Enum a)(HasDefault a) => HasDefault (Enum a)(HasDeprecated a) => HasDeprecated (Enum a)(Generic a rep, GenericEnumValues rep) => HasEnum (Enum a)(HasExamples a) => HasExamples (Enum a)(HasLinks a) => HasLinks (Enum a)(HeaderValue a) => HeaderValue (Enum a)(HeaderValueType a) => HeaderValueType (Enum a)(ParseParam a) => ParseParam (Enum a)(WriteForeign a) => WriteForeign (Enum a)(ReadForeign a) => ReadForeign (Enum a)
#Schema Source
data Schema :: Symbol -> Type -> Typedata Schema name a
Mark a type to be extracted as an OpenAPI component schema with $ref. When used in request/response bodies, generates a reference instead of inline schema.
Example: type User = { id :: Int, name :: String } Route POST path (Request { body :: JSON (Schema "User" User) }) (ok :: { body :: Schema "User" User })
Instances
(HasDescription a) => HasDescription (Schema name a)(HasExample a) => HasExample (Schema name a)(HasFormat a) => HasFormat (Schema name a)(HasMinimum a) => HasMinimum (Schema name a)(HasMaximum a) => HasMaximum (Schema name a)(HasPattern a) => HasPattern (Schema name a)(HasMinLength a) => HasMinLength (Schema name a)(HasMaxLength a) => HasMaxLength (Schema name a)(HasTitle a) => HasTitle (Schema name a)(HasNullable a) => HasNullable (Schema name a)(HasDefault a) => HasDefault (Schema name a)(HasDeprecated a) => HasDeprecated (Schema name a)(HasEnum a) => HasEnum (Schema name a)(HasExamples a) => HasExamples (Schema name a)(HasLinks a) => HasLinks (Schema name a)(HeaderValue a) => HeaderValue (Schema name a)(HeaderValueType a) => HeaderValueType (Schema name a)(ParseParam a) => ParseParam (Schema name a)(WriteForeign a) => WriteForeign (Schema name a)(ReadForeign a) => ReadForeign (Schema name a)
#Callback Source
data Callback :: Type -> Symbol -> Symbol -> Type -> Type -> Row Type -> Typedata Callback inner name expression method requestBody responseRow
Define an OpenAPI callback for webhook/asynchronous API patterns. Callbacks allow you to define outgoing requests that your API will make to the client.
Parameters: inner - The wrapped type (transparent wrapper) name - The callback identifier (e.g., "onPaymentComplete") expression - The URL with runtime expressions (e.g., "{$request.body#/callbackUrl}") method - The HTTP method type for the callback (GET, POST, etc.) requestBody - The request body type for the callback responseRow - The response variants row for the callback
Example: type PaymentRoute = Route POST (Path (Lit "payment")) (Request { body :: JSON PaymentRequest }) ( ok :: { body :: PaymentResponse } ) # Callback "onPaymentComplete" "{$request.body#/callbackUrl}" POST (JSON { status :: String, transactionId :: String }) ( ok :: { body :: { received :: Boolean } } )
#type (#) Source
Operator alias for Yoga.HTTP.API.Route.OpenAPIMetadata.Callback (left-associative / precedence 5)
#Link Source
data Link :: Type -> Symbol -> Symbol -> Row Type -> Typedata Link inner linkName operationId parametersRow
Define an OpenAPI link to express relationships between operations. Links allow you to indicate how values from one operation's response can be used as parameters in another operation.
Parameters: inner - The wrapped type (transparent wrapper) linkName - The link identifier (e.g., "getUser") operationId - The target operation ID to link to parametersRow - A row of parameter mappings with runtime expressions (as Symbol types)
Example: ok :: { body :: User } # Link "deleteUser" "deleteUserById" ( userId :: "$response.body#/id" )
Instances
(HeaderValue a) => HeaderValue (Link a linkName operationId parametersRowRow)(HeaderValueType a) => HeaderValueType (Link a linkName operationId parametersRow)(ParseParam a) => ParseParam (Link a linkName operationId parametersRow)(WriteForeign a) => WriteForeign (Link a linkName operationId parametersRow)(ReadForeign a) => ReadForeign (Link a linkName operationId parametersRow)
#type (:#) Source
Operator alias for Yoga.HTTP.API.Route.OpenAPIMetadata.Link (left-associative / precedence 5)
#Examples Source
data Examples :: Row Type -> Type -> Typedata Examples examplesRow a
Attach multiple named examples to a type for OpenAPI documentation. This allows you to provide several example values that will appear in the generated OpenAPI spec.
Example: Int # Examples (basic :: ExampleValue "42", advanced :: ExampleValue "100")
Instances
(HasExample a) => HasExample (Examples examplesRow a)HasExamples (Examples examplesRow a)(HasLinks a) => HasLinks (Examples examplesRow a)(HeaderValueType a) => HeaderValueType (Examples examplesRow a)
#ExampleValue Source
data ExampleValue :: Symbol -> Typedata ExampleValue value
A simple example with just a value (used in Examples row).
Example: basic :: ExampleValue "42"
#ExampleWithSummary Source
data ExampleWithSummary :: Symbol -> Symbol -> Typedata ExampleWithSummary value summary
An example with a summary (used in Examples row).
Example: premium :: ExampleWithSummary "456" "Premium user"
#ExampleObject Source
data ExampleObject :: Symbol -> Symbol -> Symbol -> Symbol -> Typedata ExampleObject value summary description externalValue
A complete example object with value, summary, description, and optional externalValue.
Example: external :: ExampleObject "" "External example" "An example from URL" "https://example.com/data.json"
#HasExamples Source
class HasExamples ty whereMembers
Instances
HasExamples (Examples examplesRow a)(HasExamples a) => HasExamples (Description desc a)(HasExamples a) => HasExamples (Example ex a)(HasExamples a) => HasExamples (Format fmt a)(HasExamples a) => HasExamples (Minimum v a)(HasExamples a) => HasExamples (Maximum v a)(HasExamples a) => HasExamples (Pattern pat a)(HasExamples a) => HasExamples (MinLength v a)(HasExamples a) => HasExamples (MaxLength v a)(HasExamples a) => HasExamples (Title t a)(HasExamples a) => HasExamples (Nullable a)(HasExamples a) => HasExamples (Default val a)(HasExamples a) => HasExamples (Deprecated a)(HasExamples a) => HasExamples (Enum a)(HasExamples a) => HasExamples (Schema name a)HasExamples ty
#HasLinks Source
class HasLinks ty whereMembers
links :: Proxy ty -> Array LinkMetadata
Instances
(HasLinks a) => HasLinks (Description desc a)(HasLinks a) => HasLinks (Example ex a)(HasLinks a) => HasLinks (Format fmt a)(HasLinks a) => HasLinks (Minimum v a)(HasLinks a) => HasLinks (Maximum v a)(HasLinks a) => HasLinks (Pattern pat a)(HasLinks a) => HasLinks (MinLength v a)(HasLinks a) => HasLinks (MaxLength v a)(HasLinks a) => HasLinks (Title t a)(HasLinks a) => HasLinks (Nullable a)(HasLinks a) => HasLinks (Default val a)(HasLinks a) => HasLinks (Deprecated a)(HasLinks a) => HasLinks (Enum a)(HasLinks a) => HasLinks (Schema name a)(HasLinks a) => HasLinks (Examples examplesRow a)HasLinks ty
- Modules
- Yoga.
HTTP. API. Path - Yoga.
HTTP. API. Route - Yoga.
HTTP. API. Route. Auth - Yoga.
HTTP. API. Route. BearerToken - Yoga.
HTTP. API. Route. Encoding - Yoga.
HTTP. API. Route. Handler - Yoga.
HTTP. API. Route. HeaderError - Yoga.
HTTP. API. Route. HeaderValue - Yoga.
HTTP. API. Route. Method - Yoga.
HTTP. API. Route. OpenAPI - Yoga.
HTTP. API. Route. OpenAPIMetadata - Yoga.
HTTP. API. Route. RenderMethod - Yoga.
HTTP. API. Route. Response - Yoga.
HTTP. API. Route. Route - Yoga.
HTTP. API. Route. RouteHandler - Yoga.
HTTP. API. Route. StatusCode