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

sttp.tapir.macros.EndpointInputMacros.scala Maven / Gradle / Ivy

The newest version!
package sttp.tapir.macros

import sttp.tapir.EndpointInput
import sttp.tapir.internal.EndpointInputAnnotationsMacro

trait EndpointInputMacros {

  /** Derives an input description using metadata specified with annotations on the given case class. Each field of the case class must be
    * annotated with one of the annotations from [[sttp.tapir.EndpointIO.annotations]]. Additional schema meta-data can be specified using
    * annotations from [[sttp.tapir.Schema.annotations]]. The result is mapped to an instance of the [[T]] type.
    */
  def derived[T]: EndpointInput[T] = macro EndpointInputAnnotationsMacro.generateEndpointInput[T]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy