All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alloy.OpenEnum.scala Maven / Gradle / Ivy

There is a newer version: 0.19.0-41-91762fb
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy