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

alloy.JsonUnknown.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

/** Retain unknown fields of a containing structure in this map member */
final case class JsonUnknown()

object JsonUnknown extends ShapeTag.Companion[JsonUnknown] {
  val id: ShapeId = ShapeId("alloy", "jsonUnknown")

  val hints: Hints = Hints(
    smithy.api.Documentation("Retain unknown fields of a containing structure in this map member"),
    smithy.api.Trait(selector = Some("structure > member :test(> map > member > document)"), structurallyExclusive = Some(smithy.api.StructurallyExclusive.MEMBER.widen), conflicts = None, breakingChanges = None),
  ).lazily


  implicit val schema: Schema[JsonUnknown] = constant(JsonUnknown()).withId(id).addHints(hints)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy