Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Commit

Permalink
json-ast → jsonast
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierBlanvillain committed Jun 3, 2016
1 parent 4c26c51 commit 26dedb5
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ lazy val delimitedJVM = `validation-delimited`.jvm
lazy val delimitedJS = `validation-delimited`.js
lazy val delimited = aggregate("validation-delimited", delimitedJVM, delimitedJS)

lazy val `validation-json-ast` = crossProject
lazy val `validation-jsonast` = crossProject
.crossType(CrossType.Full)
.settings(validationSettings: _*)
.dependsOn(`validation-core`)
.jvmSettings(libraryDependencies +=
"com.typesafe.play" %% "play-json" % playVersion)
lazy val jsonAstJVM = `validation-json-ast`.jvm
lazy val jsonAstJS = `validation-json-ast`.js
lazy val jsonAst = aggregate("validation-json-ast", jsonAstJVM, jsonAstJS)
lazy val jsonAstJVM = `validation-jsonast`.jvm
lazy val jsonAstJS = `validation-jsonast`.js
lazy val jsonAst = aggregate("validation-jsonast", jsonAstJVM, jsonAstJS)

lazy val `validation-playjson` = project
.settings(validationSettings: _*)
Expand Down
2 changes: 1 addition & 1 deletion date-tests/src/test/scala/DateSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ class DateSpec extends WordSpec with Matchers {
}

"jsonAst" should {
import jto.validation.jsonAst._
import jto.validation.jsonast._
import Rules._, Writes._

"Format" when {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/tut/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

- Impove error reporting ([#40](/~https://github.com/jto/validation/pull/40) [1](/~https://github.com/jto/validation/commit/357b87778f19fbbc06a49da08cb2dccf9e0a40e3), [2](/~https://github.com/jto/validation/commit/c1bdac7fcff098b1d85c6881c731d5fd4ee2ac2e))

- Rework project structure: `json``playjson`, `json4s``json-ast`, `jsjson` ([#50](/~https://github.com/jto/validation/pull/50) [0](/~https://github.com/jto/validation/commit/f95ac30b1d1346a27e26c08841ee06c00340891f) [1](/~https://github.com/jto/validation/commit/5b36f606334a5fe26715cf0d7c47ebf861acb811), [2](/~https://github.com/jto/validation/commit/3f31f4917d01b8f6fdefe4adaca70ddc823722db))
- Rework project structure: `json``playjson`, `json4s``jsonast`, `jsjson` ([#50](/~https://github.com/jto/validation/pull/50) [0](/~https://github.com/jto/validation/commit/f95ac30b1d1346a27e26c08841ee06c00340891f) [1](/~https://github.com/jto/validation/commit/5b36f606334a5fe26715cf0d7c47ebf861acb811), [2](/~https://github.com/jto/validation/commit/3f31f4917d01b8f6fdefe4adaca70ddc823722db))

- Add Scala.js support ([#42](/~https://github.com/jto/validation/pull/42) [1](/~https://github.com/jto/validation/commit/db359abfbe90d2b3b853beabcbabe88ecd1cfddb), [2](/~https://github.com/jto/validation/commit/568aa1fa1df06d775abb583cac8da679c1301227), [3](/~https://github.com/jto/validation/commit/d67d6dee7d99d27d6cf751cc69b83235b57a8246), [4](/~https://github.com/jto/validation/commit/67499a823ff463860b72d6697cf45b5764c475b2), [5](/~https://github.com/jto/validation/commit/d720ba265541a90f225c388043b5430a68e9fff3))
2 changes: 1 addition & 1 deletion docs/src/main/tut/V2MigrationGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ becomes
#### Package name

- Since the library does not depend on Play anymore and is not planned to be integrated into Play, the package names have changed. Basically `play.api.mapping` now becomes `jto.validation`. A simple search and replace in your project should work.
- The validation api support both json4s and play-json. Therefore, the package name for play json changes. `play.api.mapping.json` becomes `play.api.mapping.playjson`
- The validation api support several json representations. Therefore, the package name for play json changes. `play.api.mapping.json` becomes `play.api.mapping.playjson`

#### Rule renaming

Expand Down
2 changes: 2 additions & 0 deletions play-scalajs-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lazy val jvm = project
// "io.github.jto" %% "validation-playjson" % "2.0"))
.dependsOn(ProjectRef(file(".."), "validation-core"))
.dependsOn(ProjectRef(file(".."), "validation-playjson"))
.dependsOn(ProjectRef(file(".."), "validation-jsonast"))

lazy val js = project
.in(file("js"))
Expand All @@ -30,6 +31,7 @@ lazy val js = project
// "io.github.jto" %%% "validation-jsjson" % "2.0"))
.dependsOn(ProjectRef(file(".."), "validation-core"))
.dependsOn(ProjectRef(file(".."), "validation-jsjson"))
.dependsOn(ProjectRef(file(".."), "validation-jsonast"))

lazy val shared = crossProject.crossType(CrossType.Pure)
.in(file("shared"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import jto.validation.jsonAst._
import jto.validation.jsonast._
import org.scalatest._

class AstSpec extends WordSpec with Matchers {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import jto.validation._
import jto.validation.jsonAst._
import jto.validation.jsonast._
import org.scalatest._
import scala.Function.unlift

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import jto.validation._
import jto.validation.jsonAst._
import jto.validation.jsonast._
import org.scalatest._

case class User(age: Int, name: String)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import jto.validation._
import jto.validation.jsonAst._
import jto.validation.jsonast._
import org.scalatest._

class RulesSpec extends WordSpec with Matchers {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import jto.validation._
import jto.validation.jsonAst._
import jto.validation.jsonAst.Writes._
import jto.validation.jsonast._
import jto.validation.jsonast.Writes._
import org.scalatest._
import scala.Function.unlift

Expand Down

0 comments on commit 26dedb5

Please sign in to comment.