git.iko.soy/typeable/hjsonschema
on 1.4.0.0 help sign in
typeable/hjsonschema/changelog.md
150 lines 4.8 kB history raw
1# 1.4.0.0
3+ Rename `Data.JsonSchema.*` modules to `JSONSchema.*`.
4+ Rename `Data.Validator.*` modules to `JSONSchema.Validator.*`.
6# 1.3.0.1
8+ Bump `vector`.
10# 1.3.0.0
12+ Rewrite failure messages.
14We used to return a list of every failed validator, no matter how far it was buried within subschemas of the original schema.
16Now we return a tree of failure messages, so that if the first schema had only three validators, then no more than three top level failures will be returned.
18+ Move the code to parse each validator from JSON from `Data.Validator.Draft4` into the validators' modules themselves.
20+ Switch from Prelude to Protolude.
22+ Switch `Data.JsonSchema.Fetch` from lazy to strict bytestrings.
24# 1.2.0.2
26+ Bump hspec.
28# 1.2.0.1
30+ Switch to hspec for tests.
32# 1.2.0.0
34+ Return `AdditionalPropertiesObject` error correctly (was mistakenly returning `AdditionalItemsObject` instead.
35+ Don't silence errors resulting from subschemas of "anyOf" or "oneOf".
37# 1.1.0.1
39+ Bump `aeson` and `hjsonpointer`.
41# 1.1.0.0
43+ Rename `schemaForSchemas` to `metaSchema` and `schemaForSchemasBytes` to `metaSchemaBytes`.
45# 1.0.0.0
47## Bug fixes:
49+ Fix JSON Pointer bug. Pointers were being built in reverse order and so were totally invalid.
50+ Use `.:!` instead of `.:?` to parse the draft 4 schema. The only way to omit optional fields in JSON Schema Draft 4 is to omit them entirely, `"null"` can't be used for this.
52## API Changes:
54+ Add referenced schema loop detection.
55+ Add a new `referencesValidity` function.
56+ `checkSchema` now checks referenced schema's validity in addition to the starting schema's validity. This change bubbles up to the one-step validation functions as well.
57+ Switch most of the fetching code to use `URISchemaMap` instead of `ReferencedSchemas`. It didn't need to know about the more complicated data type.
58+ Rething failure related names. Change `Invalid` to `Failure`, add a new `Invalid` type alias which is only used for final results.
59+ Failures now include the failing part of the data as well as a JSON Pointer to it, so you don't have to worry about resolving the pointer.
61## Fundamental Changes:
63+ Make `Fail` (previously `Failure`) an instance of `Functor`.
64+ Add a `Validator` data type which is an instance of `Profunctor`.
65+ Add a `Spec` data type for collections of `Validators`.
67## General:
69+ Switch from 2 to 4 space indentation.
70+ Update the vendored JSON Schema Test Suite.
72# 0.10.0.3
74+ Bump http-client.
76# 0.10.0.2
78+ Enable GHC 8.
80# 0.10.0.1
82+ Fix .cabal file.
84# 0.10
86+ Rewrite fetching internals.
87+ Fix reference resolution defects, add more tests.
88+ Switch to a Perl style regex library, which is closer to ECMAScript regexes than the previous Posix style one.
89+ Add one-step validation functions ('fetchFilesystemAndValidate' and 'fetchHTTPAndValidate').
90+ Alias the validation failure type exported by 'Data.JsonSchema.Draft4' to
91'Invalid', change its field names.
93# 0.9
95+ Partial rewrite. The API of the library has changed, see the examples
96folder for how to use the new one.
98+ Users of the library can now write schemas in Haskell as well as JSON.
100# 0.8
102+ Improve scope updating and resolving.
103+ Rename RawSchema's _rsObject field to _rsData.
104+ Make RawSchema's _rsURI field a Maybe. This way schemas without a starting URI can say so explicitly with Nothing instead of with "".
105+ Rename Graph to SchemaGraph. Declare it with data instead of type. Give it a field referencing the starting schema. This field is used to find the curent schema if no URI is in scope and a self-referencing $ref is found (e.g. "#").
106+ Change the order of the last two arguments to fetchReferencedSchemas.
108# 0.7.1
110+ Support GHC 7.8 again.
112# 0.7
114Change error type from Text to ValidationFailure.
116Revert the 0.6 changes to validate. Also switch from Vector to list. Validate is now:
117 Schema err -> Value -> [ValidationFailure err]
119Add fetchReferencedSchemas', which lets the user provide their own MonadIO function to be used when fetching schemas. This lets them do things like only fetch schemas from particular domains.
121# 0.6
123Break the API so the library doesn't induce boolean blindness.
125Change validate
126 was: Schema -> Value -> Vector ValErr
127 now: Schema -> Value -> Either (Vector ValErr) Value
129Change Schema
130 was: type Schema = Vector Validator
131 now: newtype Schema = Schema { _unSchema :: [Validator] }
133# 0.5.3
135+ Switch from http-conduit to http-client.
137# 0.5.2
139+ Add convenience function for validating and compiling draft 4 schemas simultaneously.
141# 0.5.1
143+ Switch from wreq to http-conduit; drop lens dependency.
145# 0.5
147+ Start changelog.
148+ Rename Utils.hs to Helpers.hs.
149+ Move all non-ValidatorGen functions in Validators.hs to Helpers.hs.
150+ Various touchups.