smithy.api.AddedDefault.scala Maven / Gradle / Ivy
package smithy.api
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** Indicates that the default trait was added to a member. */
final case class AddedDefault()
object AddedDefault extends ShapeTag.Companion[AddedDefault] {
val id: ShapeId = ShapeId("smithy.api", "addedDefault")
val hints: Hints = Hints(
smithy.api.Documentation("Indicates that the default trait was added to a member."),
smithy.api.Trait(selector = Some("structure > member [trait|default]"), structurallyExclusive = None, conflicts = None, breakingChanges = Some(List(smithy.api.TraitDiffRule(change = smithy.api.TraitChangeType.REMOVE.widen, severity = smithy.api.Severity.ERROR.widen, path = None, message = None)))),
).lazily
implicit val schema: Schema[AddedDefault] = constant(AddedDefault()).withId(id).addHints(hints)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy