All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.main.kotlin.com.gabrielfeo.develocity.api.model.ApiProblem.kt Maven / Gradle / Ivy

The newest version!
/**
 *
 * Please note:
 * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * Do not edit this file manually.
 *
 */

@file:Suppress(
    "ArrayInDataClass",
    "EnumEntryName",
    "RemoveRedundantQualifierName",
    "UnusedImport"
)

package com.gabrielfeo.develocity.api.model


import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 * Response detailing why a request was rejected. Adheres to the [RFC-7807](https://datatracker.ietf.org/doc/html/rfc7807) standard (colloquially known as \"Problem JSON\") for the response format. 
 *
 * @param status HTTP status code of the problem response.
 * @param type A URN (Uniform Resource Name) identifying the type of the problem.
 * @param title The underlying reason for the problem.
 * @param detail A longer and comprehensive description of the problem. May be `null` if not available.
 */


data class ApiProblem (

    /* HTTP status code of the problem response. */
    @Json(name = "status")
    val status: kotlin.Int,

    /* A URN (Uniform Resource Name) identifying the type of the problem. */
    @Json(name = "type")
    val type: kotlin.String,

    /* The underlying reason for the problem. */
    @Json(name = "title")
    val title: kotlin.String,

    /* A longer and comprehensive description of the problem. May be `null` if not available. */
    @Json(name = "detail")
    val detail: kotlin.String? = null

) {


}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy