smithy.api.EventPayload.scala Maven / Gradle / Ivy
package smithy.api
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** Marks a member as the payload of an event. */
final case class EventPayload()
object EventPayload extends ShapeTag.Companion[EventPayload] {
val id: ShapeId = ShapeId("smithy.api", "eventPayload")
val hints: Hints = Hints(
smithy.api.Documentation("Marks a member as the payload of an event."),
smithy.api.Trait(selector = Some("structure > :test(member > :test(blob, string, structure, union))"), structurallyExclusive = Some(smithy.api.StructurallyExclusive.MEMBER.widen), conflicts = Some(List(smithy.api.NonEmptyString("smithy.api#eventHeader"))), breakingChanges = Some(List(smithy.api.TraitDiffRule(change = smithy.api.TraitChangeType.ANY.widen, severity = smithy.api.Severity.ERROR.widen, path = None, message = None)))),
).lazily
implicit val schema: Schema[EventPayload] = constant(EventPayload()).withId(id).addHints(hints)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy