Commit Graph

44 Commits

Author SHA1 Message Date
Dmitry Dygalo 9410582289
feat: Support Draft 2019-09 2020-05-14 20:44:37 +02:00
Samuele Maci 9ff2dfd727 feat: Add test_to_exclude capability into test_draft procedural macro
This is needed because there might be integration tests for which we would
like to ignore the outcome (for example it is an optional test).

In order to achieve this result the procedural macro has been rewritten to exploit
syn and quote capabilities (enhanced parsing as well as less string concatenations)
2020-05-14 19:21:23 +02:00
Dmitry Dygalo 29b7b3bf93
docs: Move information about supported drafts to the top of the README file 2020-05-14 16:15:22 +02:00
Samuele Maci bd142105b8 chore: Ignore integration tests 2020-05-14 16:13:28 +02:00
Dmitry Dygalo e9fff4e865 feat: Add Draft 4 support 2020-05-14 16:13:28 +02:00
Dmitry Dygalo 2adf6e361c
chore: Add badges 2020-05-14 15:25:36 +02:00
Dmitry Dygalo 05e67f6fa3 chore: Add code coverage reporting 2020-05-14 14:34:22 +02:00
Dmitry Dygalo 41e3a35468 chore: Run CI on pull requests & pushes to master 2020-05-14 12:01:25 +02:00
Dmitry Dygalo 4afeb198fe test: Update JSON-Schema test suite 2020-05-14 00:41:50 +02:00
Samuele Maci c7b5f88316 chore: `test_draft` should not assume imports done on the caller side
Remove not needed imports from tests/test_suite.rs and use fully qualified struct paths in generated code
2020-05-12 09:28:02 +02:00
Samuele Maci b5d69ca407 feat: run tests on github actions 2020-05-12 09:14:53 +02:00
Samuele Maci 953a372ae2 test: Ensure that draft6 is tested as well 2020-05-12 09:14:53 +02:00
Dmitry Dygalo 3355dc32a1 chore: Add CI 2020-04-15 21:12:07 +02:00
Dmitry Dygalo 1157cc1e63
chore: Add notes about performance 2020-04-15 17:14:12 +02:00
Dmitry Dygalo aa1bcf3d6a
chore: Implement `is_valid` everywhere 2020-04-02 15:38:39 +02:00
Dmitry Dygalo 825352b754
feat: Add rayon for `items` keyword 2020-04-01 21:50:35 +02:00
Dmitry Dygalo ce7ff12a83
Release 0.2.0 2020-03-30 10:30:53 +02:00
Dmitry Dygalo 1d10fb229c
chore: Expect `DEFAULT_ROOT_URL` to be valid 2020-03-30 10:00:10 +02:00
Dmitry Dygalo f937060b49
fix: Return `CompilationError` on invalid schemas 2020-03-30 09:59:51 +02:00
Dmitry Dygalo 5018acf180
chore: Add `readme` to `Cargo.toml` 2020-03-29 22:52:36 +02:00
Dmitry Dygalo 05dc119175
chore: Make `ErrorIterator` `Sync` and `Send` 2020-03-29 22:38:23 +02:00
Dmitry Dygalo a4f3c93244
chore: Implement `Error` and `Display` for `CompilationError` 2020-03-29 22:37:55 +02:00
Dmitry Dygalo 44cb4b07e2
docs: Replace `unwrap` call in doc to `?` 2020-03-29 22:37:18 +02:00
Dmitry Dygalo 04a8111da1
fix: Export `CompilationError` 2020-03-29 22:36:51 +02:00
Dmitry Dygalo 6e429a38f7
chore: Improve error messages 2020-03-29 21:28:39 +02:00
Dmitry Dygalo 9d4bee4fd9
refactor: Reorganize imports 2020-03-29 15:02:46 +02:00
Dmitry Dygalo ad8fcb6706
chore: Add more benchmarks 2020-03-29 14:52:26 +02:00
Dmitry Dygalo 79c6975371
refactor: Restructure project 2020-03-29 14:51:55 +02:00
Dmitry Dygalo 44c490f40a
docs: Added missed `unwrap` to example 2020-03-29 14:25:08 +02:00
Dmitry Dygalo 517a9a2199
feat: Implement `is_valid` for various validators 2020-03-29 14:06:57 +02:00
Dmitry Dygalo ec15de71bc
docs: Remove needless `main` from examples 2020-03-29 13:33:43 +02:00
Dmitry Dygalo c75e591a82
refactor: Implement `is_valid` for `format` validator 2020-03-29 13:31:56 +02:00
Dmitry Dygalo 89e661e433
refactor: `format` validator 2020-03-29 13:06:38 +02:00
Dmitry Dygalo 66ea8dfc1a
refactor: `contentMediaType` and `contentEncoding` validators 2020-03-29 12:55:09 +02:00
Dmitry Dygalo 0008fcf8ae
Update Cargo.toml 2020-03-29 11:08:50 +02:00
Dmitry Dygalo 2fd80011e4
Update Cargo.toml 2020-03-29 11:00:46 +02:00
Dmitry Dygalo 3cb0590f9c
docs: Top-level docs 2020-03-29 10:58:27 +02:00
Dmitry Dygalo 4a6659aa07
docs: Add example 2020-03-29 10:50:28 +02:00
Dmitry Dygalo fbcfc5072d
Merge pull request #25 from Stranger6667/try
feat: Error iterator
2020-03-29 10:47:43 +02:00
Dmitry Dygalo 1fbc8d6831
feat: Error iterator 2020-03-29 10:47:09 +02:00
Dmitry Dygalo 70bb3631a3
fix: "uniqueItems" keyword - impl `Hash` for a newtype wrapper 2020-03-27 14:25:14 +01:00
Dmitry Dygalo 9fc0397aa0
Rename config -> schema 2020-03-26 11:19:47 +01:00
Dmitry Dygalo 9e3d0f0c71
Add LICENSE 2020-03-25 18:08:05 +01:00
dmitry.dygalo 17d7fd5cb5
Initial commit 2020-03-25 18:04:54 +01:00