Skip to content

Commit

Permalink
Merge pull request #293 from ulitol97/master
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
ulitol97 authored Mar 3, 2022
2 parents 06fa350 + 8178ede commit bf23162
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 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
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ package object swagger {
),
host = "api.rdfshape.weso.es".some,
basePath = s"/$api".some, // All routes are prefixed by "/api"
schemes = List(Scheme.HTTPS),
schemes = List(Scheme.HTTP, Scheme.HTTPS),
consumes = List("application/json"),
produces = List("text/plain; charset=utf-8", "application/json")
)
Expand Down

0 comments on commit bf23162

Please sign in to comment.