alloy.common.LanguageCodeFormat.scala Maven / Gradle / Ivy
package alloy.common
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** ISO 639-1 Alpha-2 language code or Language for short.
* Column `ISO 639-1` in https://www.loc.gov/standards/iso639-2/php/English_list.php
* example: "fr", "en"
*/
final case class LanguageCodeFormat()
object LanguageCodeFormat extends ShapeTag.Companion[LanguageCodeFormat] {
val id: ShapeId = ShapeId("alloy.common", "languageCodeFormat")
val hints: Hints = Hints(
smithy.api.Documentation("ISO 639-1 Alpha-2 language code or Language for short.\nColumn `ISO 639-1` in https://www.loc.gov/standards/iso639-2/php/English_list.php\nexample: \"fr\", \"en\""),
smithy.api.Trait(selector = Some(":test(string, member > string)"), structurallyExclusive = None, conflicts = None, breakingChanges = None),
).lazily
implicit val schema: Schema[LanguageCodeFormat] = constant(LanguageCodeFormat()).withId(id).addHints(hints)
}