alloy.JsonUnknown.scala Maven / Gradle / Ivy
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)
}