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

alloy.common.LanguageCodeFormat.scala Maven / Gradle / Ivy

There is a newer version: 0.19.0-41-91762fb
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy