RecipeInput.kt
package org.openapitools.model
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonProperty
import org.openapitools.model.RecipeIngredient
import org.openapitools.model.RecipeNutrients
import jakarta.validation.constraints.DecimalMax
import jakarta.validation.constraints.DecimalMin
import jakarta.validation.constraints.Email
import jakarta.validation.constraints.Max
import jakarta.validation.constraints.Min
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Pattern
import jakarta.validation.constraints.Size
import jakarta.validation.Valid
import io.swagger.v3.oas.annotations.media.Schema
/**
*
* @param title
* @param ingredients
* @param instructions
* @param portions
* @param nutrients
*/
data class RecipeInput(
@get:Size(min=1,max=255)
@Schema(example = "null", required = true, description = "")
@get:JsonProperty("title", required = true) val title: kotlin.String,
@field:Valid
@get:Size(min=1)
@Schema(example = "null", required = true, description = "")
@get:JsonProperty("ingredients", required = true) val ingredients: kotlin.collections.List<RecipeIngredient>,
@get:Size(min=1)
@Schema(example = "null", required = true, description = "")
@get:JsonProperty("instructions", required = true) val instructions: kotlin.collections.List<kotlin.String>,
@get:DecimalMin(value="0.5")
@Schema(example = "null", required = true, description = "")
@get:JsonProperty("portions", required = true) val portions: kotlin.Double,
@field:Valid
@Schema(example = "null", description = "")
@get:JsonProperty("nutrients") val nutrients: RecipeNutrients? = null
) {
}