git.iko.soy/typeable/hjsonschema
on 1.2.0.1 help sign in
typeable/hjsonschema/changelog.txt
142 lines 4.0 kB history raw
1# 1.2.0.1
3+ Switch to hspec for tests.
5# 1.2.0.0
7+ Return `AdditionalPropertiesObject` error correctly (was mistakenly
8returning `AdditionalItemsObject` instead.
9+ Don't silence errors resulting from subschemas of "anyOf" or "oneOf".
11# 1.1.0.1
13+ Bump `aeson` and `hjsonpointer`.
15# 1.1.0.0
17+ Rename `schemaForSchemas` to `metaSchema` and `schemaForSchemasBytes` to
18`metaSchemaBytes`.
20# 1.0.0.0
22## Bug fixes:
24+ Fix JSON Pointer bug. Pointers were being built in reverse order and so were
25totally invalid.
26+ Use `.:!` instead of `.:?` to parse the draft 4 schema. The only way to omit
27optional fields in JSON Schema Draft 4 is to omit them entirely, `"null"`
28can't be used for this.
30## API Changes:
32+ Add referenced schema loop detection.
33+ Add a new `referencesValidity` function.
34+ `checkSchema` now checks referenced schema's validity in addition to the
35starting schema's validity. This change bubbles up to the one-step validation
36functions as well.
37+ Switch most of the fetching code to use `URISchemaMap` instead of
38`ReferencedSchemas`. It didn't need to know about the more complicated data
39type.
40+ Rething failure related names. Change `Invalid` to `Failure`, add a new
41`Invalid` type alias which is only used for final results.
42+ Failures now include the failing part of the data as well as a JSON Pointer to
43it, so you don't have to worry about resolving the pointer.
45## Fundamental Changes:
47+ Make `Fail` (previously `Failure`) an instance of `Functor`.
48+ Add a `Validator` data type which is an instance of `Profunctor`.
49+ Add a `Spec` data type for collections of `Validators`.
51## General:
53+ Switch from 2 to 4 space indentation.
54+ Update the vendored JSON Schema Test Suite.
56# 0.10.0.3
58+ Bump http-client.
60# 0.10.0.2
62+ Enable GHC 8.
64# 0.10.0.1
66+ Fix .cabal file.
68# 0.10
70+ Rewrite fetching internals.
71+ Fix reference resolution defects, add more tests.
72+ Switch to a Perl style regex library, which is closer to ECMAScript regexes
73than the previous Posix style one.
74+ Add one-step validation functions ('fetchFilesystemAndValidate' and 'fetchHTTPAndValidate').
75+ Alias the validation failure type exported by 'Data.JsonSchema.Draft4' to
76'Invalid', change its field names.
78# 0.9
80+ Partial rewrite. The API of the library has changed, see the examples
81folder for how to use the new one.
83+ Users of the library can now write schemas in Haskell as well as JSON.
85# 0.8
87+ Improve scope updating and resolving.
88+ Rename RawSchema's _rsObject field to _rsData.
89+ Make RawSchema's _rsURI field a Maybe. This way schemas without a starting
90URI can say so explicitly with Nothing instead of with "".
91+ Rename Graph to SchemaGraph. Declare it with data instead of type. Give it a
92field referencing the starting schema. This field is used to find the curent
93schema if no URI is in scope and a self-referencing $ref is found (e.g. "#").
94+ Change the order of the last two arguments to fetchReferencedSchemas.
96# 0.7.1
98+ Support GHC 7.8 again.
100# 0.7
102Change error type from Text to ValidationFailure.
104Revert the 0.6 changes to validate. Also switch from Vector
105to list. Validate is now:
106 Schema err -> Value -> [ValidationFailure err]
108Add fetchReferencedSchemas', which lets the user provide their
109own MonadIO function to be used when fetching schemas. This lets
110them do things like only fetch schemas from particular domains.
112# 0.6
114Break the API so the library doesn't induce boolean blindness.
116Change validate
117 was: Schema -> Value -> Vector ValErr
118 now: Schema -> Value -> Either (Vector ValErr) Value
120Change Schema
121 was: type Schema = Vector Validator
122 now: newtype Schema = Schema { _unSchema :: [Validator] }
124# 0.5.3
126+ Switch from http-conduit to http-client.
128# 0.5.2
130+ Add convenience function for validating and compiling draft 4 schemas
131simultaneously.
133# 0.5.1
135+ Switch from wreq to http-conduit; drop lens dependency.
137# 0.5
139+ Start changelog.
140+ Rename Utils.hs to Helpers.hs.
141+ Move all non-ValidatorGen functions in Validators.hs to Helpers.hs.
142+ Various touchups.