alloy.OpenEnum.scala Maven / Gradle / Ivy
package alloy
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** Specifies that an enumeration is open meaning that
* it can accept "unknown" values that are not explicitly
* specified inside of the smithy enum shape definition.
*/
final case class OpenEnum()
object OpenEnum extends ShapeTag.Companion[OpenEnum] {
val id: ShapeId = ShapeId("alloy", "openEnum")
val hints: Hints = Hints(
smithy.api.Documentation("Specifies that an enumeration is open meaning that\nit can accept \"unknown\" values that are not explicitly\nspecified inside of the smithy enum shape definition."),
smithy.api.Trait(selector = Some(":test(enum, intEnum, [trait|enum])"), structurallyExclusive = None, conflicts = None, breakingChanges = None),
).lazily
implicit val schema: Schema[OpenEnum] = constant(OpenEnum()).withId(id).addHints(hints)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy