smithy.api.Output.scala Maven / Gradle / Ivy
package smithy.api
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** Specializes a structure for use only as the output of a single operation. */
final case class Output()
object Output extends ShapeTag.Companion[Output] {
val id: ShapeId = ShapeId("smithy.api", "output")
val hints: Hints = Hints(
smithy.api.Documentation("Specializes a structure for use only as the output of a single operation."),
smithy.api.Trait(selector = Some("structure"), structurallyExclusive = None, conflicts = Some(List(smithy.api.NonEmptyString("smithy.api#input"), smithy.api.NonEmptyString("smithy.api#error"))), breakingChanges = Some(List(smithy.api.TraitDiffRule(change = smithy.api.TraitChangeType.PRESENCE.widen, severity = smithy.api.Severity.ERROR.widen, path = None, message = None)))),
).lazily
implicit val schema: Schema[Output] = constant(Output()).withId(id).addHints(hints)
}