smithy.api.EventHeader.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 a header of an event. */
final case class EventHeader()
object EventHeader extends ShapeTag.Companion[EventHeader] {
val id: ShapeId = ShapeId("smithy.api", "eventHeader")
val hints: Hints = Hints(
smithy.api.Documentation("Marks a member as a header of an event."),
smithy.api.Trait(selector = Some("structure >\n:test(member > :test(boolean, byte, short, integer, long, blob, string, timestamp))"), structurallyExclusive = None, conflicts = Some(List(smithy.api.NonEmptyString("smithy.api#eventPayload"))), 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[EventHeader] = constant(EventHeader()).withId(id).addHints(hints)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy