Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ulitol97 committed Mar 3, 2022
1 parent cf51dd7 commit 55a9ada
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private[api] object SchemaValidate extends LazyLogging {
case other =>
IO.raiseError(
new RuntimeException(
s"Unexpected validation trigger (${other._type})"
s"Unexpected validation trigger (${other.`type`})"
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ trait TriggerMode {

/** Corresponding type of this adapter inside [[ValidationTrigger]]
*/
val _type: TriggerModeType
val `type`: TriggerModeType

/** Optionally, the [[Data]] being validated in the validation using this trigger
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sealed case class TriggerShapeMap(
* @return A ShapeMap instance used by WESO libraries in validation
*/
lazy val innerShapeMap: Either[String, ShapeMapW] = shapeMap.innerShapeMap
override val _type: TriggerModeType = TriggerModeType.SHAPEMAP
override val `type`: TriggerModeType = TriggerModeType.SHAPEMAP

// Fetched shapeMap successfully
assume(
Expand Down Expand Up @@ -107,7 +107,7 @@ private[api] object TriggerShapeMap
override implicit val encode: Encoder[TriggerShapeMap] =
(tsm: TriggerShapeMap) =>
Json.obj(
("type", tsm._type.asJson),
("type", tsm.`type`.asJson),
("shapeMap", tsm.shapeMap.asJson),
("data", tsm.data.asJson),
("schema", tsm.schema.asJson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sealed case class TriggerTargetDeclarations private (
) extends TriggerMode
with LazyLogging {

override val _type: TriggerModeType =
override val `type`: TriggerModeType =
TriggerModeType.TARGET_DECLARATIONS

override def getValidationTrigger: ValidationTrigger =
Expand All @@ -38,7 +38,7 @@ private[api] object TriggerTargetDeclarations
override implicit val encode: Encoder[TriggerTargetDeclarations] =
(tsm: TriggerTargetDeclarations) =>
Json.obj(
("type", tsm._type.asJson),
("type", tsm.`type`.asJson),
("data", tsm.data.asJson),
("schema", tsm.schema.asJson)
)
Expand Down

0 comments on commit 55a9ada

Please sign in to comment.