RepresentationContractResponse

data class RepresentationContractResponse(val contentType: String, val examples: Map<String, ParameterExampleContractResponse>? = null, val formParameters: List<ParameterContractResponse>? = null, val schemaId: String? = null, val typeName: String? = null)

Operation request/response representation details.

Constructors

Link copied to clipboard
constructor(contentType: String, examples: Map<String, ParameterExampleContractResponse>? = null, formParameters: List<ParameterContractResponse>? = null, schemaId: String? = null, typeName: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies a registered or custom content type for this representation, e.g. application/xml.

Link copied to clipboard

Exampled defined for the representation.

Link copied to clipboard

Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..

Link copied to clipboard
val schemaId: String? = null

Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.

Link copied to clipboard
val typeName: String? = null

Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.