Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/voxpupuli/json-schema
Ruby JSON Schema Validator
https://github.com/voxpupuli/json-schema
2371b781b725b85fa02c7c2390c289dfeee8be22 authored almost 8 years ago by Iain Beeston <[email protected]>
4d667b9a54578b91333aef2dc7e78d3922bdfba0 authored almost 8 years ago by Iain Beeston <[email protected]>
383efaab1e20e4327d64d4e3a2b3e3e48e6ba017 authored almost 8 years ago by Iain Beeston <[email protected]>
89fd412d4395b12278bf449e3423a5e817ffe703 authored almost 8 years ago by Iain Beeston <[email protected]>
56fe076bf2f444f099c9a1a0c0f2b0efff3e3199 authored almost 8 years ago by Iain Beeston <[email protected]>
automatically included
Previously only drafts1-4 and no custom drafts were included when registe...
37075ced92c42bb9cd3345bbac2f5449662b0626 authored almost 8 years ago by Iain Beeston <[email protected]>Use self or self.class rather than fully qualified class names
32d29a74908dd1816537045b37cdde0fb5b7f255 authored almost 8 years ago by Iain Beeston <[email protected]>Load local copy of draft schemas
9917157f9c8d29503c19b0cafd5412a30ec5dd11 authored over 8 years ago by Iain Beeston <[email protected]>
If you refer to a draft schema in a $ref (as the common test suite does)
json-schema will load i...
Simplified `#validator_for` methods
9d25c9a651e6190c59ccbbab0272b7acd1b0f19d authored over 8 years ago by Iain Beeston <[email protected]>Right now there is:
* `#validator_for`
* `#validator_for_uri`
* `#validator_for_name`
* `#valid...
Moved Validator#absolutized_uri and RefAttribute's ref parsing into the URI module
8e47deb90bf0a11ee0c61c99785cb76a031bffd2 authored over 8 years ago by Iain Beeston <[email protected]>
I just noticed that we have this URI processing method in Validator, and
similar code in RefAttr...
Made sure clear_cache also clears the cache of parsed uris
71585320550a98ea2bd262a9b553db241f54852f authored over 8 years ago by Iain Beeston <[email protected]>
There are two main caches in json-schema. One is for schemas, one is for
parsed uris. Previously...
class_eval is dangerous to use, as it injects a string into a class as
ruby code, meaning that ...
I've started to use simplecov on json-schema to find gaps in the test
coverage. This might be us...
In validator.rb and schema.rb there are many places where we refer to
the current class explicit...
9dc5d795f9cac651cb3b42a7c213a253ede9615f authored over 8 years ago by Iain Beeston <[email protected]>
Wasn't working before
7e6e29e5fa083035237bea7c31d008bc37808d54 authored over 8 years ago by Iain Beeston <[email protected]>
When getting a `404` or `500` error it was impossible to know which
file was causing the problem...
I've had to change one of the specs because of this. It seems that
addressable now raises an er...
* Test for partial tuple validation
* Fix validation of partial tuples
When 'items' is an ...
e5c3a1a95dffcfb27def484677f2760758c5af5f authored over 8 years ago by Joe Faber <[email protected]>Use latest json-schema draft in tests by default
b16f10caf77b67d90f9f67bbcd9ab1723a29b3af authored over 8 years ago by Iain Beeston <[email protected]>
Lots of core tests were explicitly using draft-03, which works slightly
differently to the lates...
Made it possible to have a property named "$ref"
242e862370fb2134c96d6df733f349abe33a7618 authored over 8 years ago by Jonas Peschla <[email protected]>
For a few weeks we've had a test from the json-schema common test suite
failing on master. The t...
Seems to have stopped working on travis?
db0429d347eb7c4cd143e5992b6ca430c76536ab authored over 8 years ago by Iain Beeston <[email protected]>Fixed issues with caching
6333f0ca18563c613cca0ae994bbf69fe58a9421 authored over 8 years ago by Iain Beeston <[email protected]>
The only bug this brought up was we were testing that `multipleOf`
worked for 0, but the json sc...
1d183bf8d15dc6da9685d0c0b9080ac0db4179e3 authored over 8 years ago by Iain Beeston <[email protected]>
The code for this was very confused, it seems that clearing the cache
has been broken at some po...
Restricted the ruby 1.9 build to json < 2
5d911b9302f538b2ebb1626de2ba583d5d251161 authored over 8 years ago by Jonas Peschla <[email protected]>
Version 2.0 of the json gem requires ruby 2+. We should continue
supporting ruby 1.9, but to do ...
Made sure all validate methods go through the same call chain
ceae5c8acbb25b11893c1db161ba7ed21f58b1f2 authored over 8 years ago by Iain Beeston <[email protected]>Removed the ruby 1.8 build from travis
7c9547bb19a7085670335c5a1d239edf9c296def authored over 8 years ago by Iain Beeston <[email protected]>
Ruby 1.8 support hasn't worked for some time, and we've been ignoring
build failures on travis f...
Travis doesn't support 2.3 yet
2fc35df2e90f3bab748b85982708774d7034eb4f authored over 8 years ago by Iain Beeston <[email protected]>eb58a3c95635fbc952399df34474ee33440bafad authored over 8 years ago by Iain Beeston <[email protected]>
Right now when a schema is validated, we perform a different call path
depending on which of the...
Tidy up tests
ab96e9a5b0735a86294bf616a3768faee3b401c8 authored over 8 years ago by Iain Beeston <[email protected]>To avoid unintended side-effects
03332fcf86bccb707dc7b67f17ab7b2c1cad9e0e authored over 8 years ago by Iain Beeston <[email protected]>fdf3815b4b2965f854677719e033f9ac5514729e authored over 8 years ago by Iain Beeston <[email protected]>
d9661403a9084978ed21fadbaf411db1077c2d0b authored over 8 years ago by Iain Beeston <[email protected]>
0e279d9c570d27c9e4c006b5e0be9ee103c30af6 authored over 8 years ago by Iain Beeston <[email protected]>
96b10fc8e56520e4812068d133818cd652973b7e authored over 8 years ago by Iain Beeston <[email protected]>
Made it possible to have refs that include URI-special characters
a5a45c6638481cd6717a92d6c4cdc9b14054db2a authored over 8 years ago by Iain Beeston <[email protected]>Turns out that before:
* if you had a ref that included a colon, the text before the colon was
...
Reformatted the examples to make them easier to read
cc9f4d03fe1ef7a5315bb1720ab31da25ee51d1a authored over 8 years ago by Iain Beeston <[email protected]>33b2b05e6cf9235e303f474ca1db962ca670928d authored almost 9 years ago by Iain Beeston <[email protected]>
354490f500d2e2567777e4383895b86bc136da9b authored almost 9 years ago by Iain Beeston <[email protected]>
2ab0331a1b2009e23f7bd1b7206b8c64189f7f4b authored almost 9 years ago by Iain Beeston <[email protected]>
Update README.md
e16ab7a1d64405b8ac0a8b5567aa8e1398d617dd authored almost 9 years ago by Iain Beeston <[email protected]>Making it a little easier to read the descriptions of the three validate methods.
5d57af4b346367f97ca2f290d5c9aa2eb35f27fe authored almost 9 years ago by Scott Kobewka <[email protected]>f7b542ed8bfdd553ef19f70d000a9e9008c9da57 authored almost 9 years ago by Iain Beeston <[email protected]>
Convert readme to markdown
d600833c6135ffdcb2f4d20aafd3400e1ea9ae64 authored almost 9 years ago by Iain Beeston <[email protected]>This started as a straight up automated conversion via pandoc:
pandoc README.textile -o READM...
301c407d169eacb9f066635446f484fbe5a11848 authored almost 9 years ago by Joe Lencioni <[email protected]>Forgot to do this in the PR
2414110fc3e553d5d9107cbcc287a0125ab4c4a7 authored almost 9 years ago by Iain Beeston <[email protected]>dbcf20706fcd0440d0098836e21797a1ad03e538 authored almost 9 years ago by Iain Beeston <[email protected]>
Made sure we include the module name for SchemaParseErrors
28f0f4936ed9439fef1b1b3b2e73857bc5eed9d0 authored almost 9 years ago by Jonas Peschla <[email protected]>If you pass an unrecognized object for the schema, we should be raising a SchemaParseError, howe...
c3c46a6d63450eefa70c9e0673df2a5be937ae5b authored almost 9 years ago by Iain Beeston <[email protected]>597952b0328a1c8a82507528eb9e795a323f995e authored about 9 years ago by Iain Beeston <[email protected]>
0dc351088f509939c7be98f0f47ccf5131d5433f authored about 9 years ago by Iain Beeston <[email protected]>
f4183cfdc4c0edb40f7a467c21ba3164098482ff authored about 9 years ago by Iain Beeston <[email protected]>
da77b70e680eee168e0afc37f654bfbd4125d3ed authored about 9 years ago by Iain Beeston <[email protected]>
Redux: speed up JSON::Validator.validate
6a1620e49518e988bae00e3958e5cc53329a02f4 authored about 9 years ago by Iain Beeston <[email protected]>Remove ruby warnings
4744d415e752f5a1555bc15e4c4ab91f97e67fae authored about 9 years ago by Iain Beeston <[email protected]>For the unused variable `validator`
111f16e70d5ac5a2cf93c6a4b8979fb81243c702 authored about 9 years ago by Teo Ljungberg <[email protected]>Hopefully this will make it easier to change in future
6967d993ef9a08b0f19ad011275791c28e6b75e0 authored about 9 years ago by Iain Beeston <[email protected]>
Addressable::URI#fragment= triggers a revalidation of the URL, which is
super slow. Don't do th...
46abf887c33b5055af749996141a3828be1ec8bd authored about 9 years ago by Michael J. Cohen <[email protected]>
Addressible's URI parsing shows up at the top of the profiler for our use case.
This patch adds...
d89890515290e881d40ce884fcc2182c665809fa authored about 9 years ago by Michael J. Cohen <[email protected]>Only rescue errors explicitly
9de134749359b38a66b6756003a8e9c8ba996b09 authored about 9 years ago by Iain Beeston <[email protected]>31a620b7e9e6f7b908e989b365d86a94b75a9b66 authored about 9 years ago by Iain Beeston <[email protected]>
Update README.textile to fix schema validation example
d52160eb805da15470838a30af0a51f5348492a4 authored about 9 years ago by Iain Beeston <[email protected]>0d262057ee8fb333cb5a0c295608d1475b0235ba authored about 9 years ago by Iain Beeston <[email protected]>
Test all versions in test_custom_format
d14e51b3b5d2ad7a25f41e9e128f2aac93110f12 authored about 9 years ago by Iain Beeston <[email protected]>5b80c538908de4124d512685be8bcd9297515d83 authored about 9 years ago by James McKinney <[email protected]>
fa7776dd7eaadd49ec43093ae9fcfbcedf698af1 authored about 9 years ago by Kenny Hoxworth <[email protected]>
register_format_validator on default_validator
3d4f96137fb470070c2e767038e9a58cb5722d85 authored about 9 years ago by Kenny Hoxworth <[email protected]>8960753d88011afdfc9c0f2b9e4c78cbbb00309b authored about 9 years ago by James McKinney <[email protected]>
84012d872b21d9be584aeba16a3e7fae6c0ff11d authored about 9 years ago by James McKinney <[email protected]>
21d22e4fd31d42683a535513bc36852fe29580fd authored about 9 years ago by James McKinney <[email protected]>
710b6f25e68f68b765a4c39f6397e4b4eec95b5d authored about 9 years ago by Martin Konecny <[email protected]>
Explicitly notes :strict overrides any required properties set in schema
6e88557c3106d5b4f94ee45118f527f803f3a606 authored over 9 years ago by Iain Beeston <[email protected]>a71b74f7f25e8bea1f125ce45163da13a9ae372e authored almost 10 years ago by JKGisMe <[email protected]>
Enabled warnings when running tests
c8bfd03c07802891f5f20d42acd03d7dbff8a504 authored almost 10 years ago by Iain Beeston <[email protected]>Older versions raised ruby warnings
6905dcb295a8c1f46594f3fb29914fbb20e2b034 authored almost 10 years ago by Iain Beeston <[email protected]>c7dd2fcef1c0ffa85b9a21087b80512e388e27d5 authored almost 10 years ago by Iain Beeston <[email protected]>
701a6e27b5c2be94fac3f39da8122ba8d38a2cf3 authored almost 10 years ago by Iain Beeston <[email protected]>
Allow boolean false as a default property.
8b607ead8834e350316df351661616a54a3870d6 authored almost 10 years ago by Iain Beeston <[email protected]>Removed test files from gemspec
7d63ed19412232eb0faba9afd87e90f70b351054 authored almost 10 years ago by Iain Beeston <[email protected]>Expose clear_cache option
77b7fb2f2dea34fdbd2238c8d6ce9e3cfd41f332 authored almost 10 years ago by Iain Beeston <[email protected]>Use old hash syntax in tests
bc5a2eca9dc8ef37fba8ea76f9036151300e25aa authored almost 10 years ago by Iain Beeston <[email protected]>b1fa9c0491201b90c57e90cc4abd4945426e9fda authored almost 10 years ago by Chris Andreae <[email protected]>
Otherwise the ruby 1.8 travis build fails
637f89c74ea00e3aec084b7cb031ca922b00671a authored almost 10 years ago by Iain Beeston <[email protected]>
There are a lot of places in the code where we rescue any error, at all.
That's quite dangerous,...
d5ffdad11b40922abfa64133e8d069d94e6440e0 authored almost 10 years ago by Chris Andreae <[email protected]>
Should reduce the size of the gem. The default for new gems (created by bundler) is not to inclu...
6f76498f7f366e78af021484111ba7224f95eaa3 authored almost 10 years ago by Iain Beeston <[email protected]>fa316dc9d39b922935aed8ec9fa0e4139b724ef5 authored almost 10 years ago by Daniel Draper <[email protected]>