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

scala.smithy.rules.OperationInputs.scala Maven / Gradle / Ivy

There is a newer version: 0.0.32
Show newest version
package smithy.rules

import smithy4s.Hints
import smithy4s.Newtype
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.schema.Schema.bijection
import smithy4s.schema.Schema.list

/** A list of operation input descriptions for an endpoint rule-set test case.
  * @param member
  *   The service operation configuration to be used for testing the rules-engine.
  */
object OperationInputs extends Newtype[List[OperationInput]] {
  val id: ShapeId = ShapeId("smithy.rules", "OperationInputs")
  val hints: Hints = Hints(
    smithy.api.Documentation("A list of operation input descriptions for an endpoint rule-set test case."),
    smithy.api.Unstable(),
    smithy.api.Private(),
  )
  val underlyingSchema: Schema[List[OperationInput]] = list(OperationInput.schema.addMemberHints(smithy.api.Documentation("The service operation configuration to be used for testing the rules-engine."))).withId(id).addHints(hints)
  implicit val schema: Schema[OperationInputs] = bijection(underlyingSchema, asBijection)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy