Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Releases: eclipsesource/play-json-schema-validator

v0.9.6-M1

18 Sep 19:03
Compare
Choose a tag to compare
v0.9.6-M1 Pre-release
Pre-release

Fixes #140

v0.9.5

27 Jun 11:40
Compare
Choose a tag to compare

Support for Scala 2.13

v0.9.5-M4

05 Sep 07:53
Compare
Choose a tag to compare
v0.9.5-M4 Pre-release
Pre-release

When schema has been resolved via cache, use it as the document root (#137)

v0.9.5-M3

15 Aug 13:10
Compare
Choose a tag to compare
v0.9.5-M3 Pre-release
Pre-release

Fixed issue with resolving plain name fragments refs (#136)

v0.9.5-M2

05 Jun 17:46
Compare
Choose a tag to compare
v0.9.5-M2 Pre-release
Pre-release
  • Include meta schemas for v4 and v7 by default (fixes #129). For this to work you need to explicitly pass the desired version to the validator, e.g.
val validator = SchemaValidator(Some(Version7))

v0.9.5-M1

10 Mar 13:07
Compare
Choose a tag to compare
v0.9.5-M1 Pre-release
Pre-release
  • Adds Support for v7
    Note that in contrast to to v4, v7 support does not resolve external references automatically any more (as described here). You can add all schemas to be known via addSchema:
import com.eclipsesource.schema.drafts.Version7
// add geo schema to known schemas
val validator = SchemaValidator(Some(Version7))
        .addSchema("http://json-schema.org/geo", geoSchema)

Alternatively, override default option supportsExternalReferences:

val options = new SchemaConfigOptions  {
  // override option
  override def supportsExternalReferences: Boolean = true
  override def formats: Map[String, SchemaFormat] = DefaultFormats.formats
}
val validator = SchemaValidator(Some(Version7(options)))

SchemaValidator now also takes an optional Version argument, which determines the version to be used. If it is omitted the version will be determined via the $schema keyword in the schema if applicable, otherwise it falls back to using v7.

  • Schema Reads are more strict and report errors in case the expected type of a SchemaType differs instead of trying to parse by best effort means (which often resulted in schema objects with empty properties)
  • Fix failing v4 tests by fixing $ref resolving. Introduce SchemaRef as AST node.
  • Rename origin to referrer in error reports
  • Add validate overload with Source as parameter

v0.9.4

07 Jul 10:43
Compare
Choose a tag to compare

Add cross-build support for Scala 2.11

v0.9.3

30 Jun 09:59
Compare
Choose a tag to compare

Update to Play 2.6

v0.9.2

12 Jun 06:33
Compare
Choose a tag to compare
  • Update for Play JSON 2.6.0 RC 2

v0.9.1

29 May 18:35
Compare
Choose a tag to compare
  • schemas added via addSchema are resolved correctly (#98)
  • date-time format uses java.time.OffsetDateTime.parse (#112)
  • Improved performance (#116)