smithy4s.com.dwolla.consul.smithy.ServiceName.scala Maven / Gradle / Ivy
package com.dwolla.consul.smithy
import smithy4s.Hints
import smithy4s.Newtype
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.schema.Schema.bijection
import smithy4s.schema.Schema.string
object ServiceName extends Newtype[String] {
val id: ShapeId = ShapeId("com.dwolla.consul.smithy", "ServiceName")
val hints: Hints = Hints.empty
val underlyingSchema: Schema[String] = string.withId(id).addHints(hints)
implicit val schema: Schema[ServiceName] = bijection(underlyingSchema, asBijection)
}