Cristian Le
9360910c3d
Reconfigure CI ( #259 )
...
* Add basic presets
* Add basic pre-commit
* Reconfigure github action
- Enforce pre-commits
- Move conan to CD workflow
* Add simple instructions for pre-commit
* Simplify action CIs
* Add coverage CI
Temporarily disabled until setup internally
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 19:49:27 +02:00
Christophe Blaess
f156a7fc7b
Remove obsolete sentence in README.md.
2022-11-28 13:08:52 +01:00
Martin KOCH
c6cb3d4c2d
mention default value processing in the README
2022-06-06 10:09:55 +02:00
vrince
b1ef862832
prepend all cmake option with JSON_VALIDATOR_ ( #179 )
...
Co-authored-by: Thomas Vincent <tvincent@ei3.com>
2021-11-19 08:55:17 +01:00
Finkman
639e09b6f9
First approach to clean out ( #165 )
...
* First approach to clean out
* Update readme remove example
* Correct readme for install and json integration
2021-11-11 20:23:50 +01:00
Leon De Andrade
4ebc6c2334
Feature: Add uuid format-string support
2021-09-08 15:34:08 +02:00
Patrick Boettcher
ecaeea06bc
Add an example for how to use with cmake-submodules
...
fix #147
fix #148
2021-03-09 11:22:30 +01:00
Patrick Boettcher
82f962d1e8
update README concerning format-checker-usage
2020-08-05 10:11:14 +02:00
Patrick Boettcher
ea711586b1
thread-safety section in README added.
2020-07-13 11:47:44 +02:00
Martin Peterlin
6e9812f4e3
Added Hunter, install and MSVC fix
2020-07-13 11:35:36 +02:00
Luke Kersting
8a7d1d3fde
Adapt CMake project name to be coherent with nlohmann::json's naming
...
Now when json-schema-validator is installed CMake config files are installed in the lib/cmake/json-schema-validator directory.
The install json-schema-validatorTargets.cmake file properly imports the json-hpp and json-schema-validator libraries.
The install json-schema-validatorConfig.cmake file is used by CMake find_package function to include the json-schema-validatorTargets.cmake file and to set the variable JSON_SCHEMA_VALIDATOR_INCLUDE_DIRS to the install include directory.
To use find_package to find the json-schema-validator simply include.
A new test (test_cmake_install) has been added.
When NLohmann's JSON is install with CMake, it follows a certain
naming convention.
As we learned to do proper CMake-install thanks to @lkersting's work
this project now adapts to the way NLohmann is doing it. Namely:
- json-schema.hpp is now located (and installed)
in a nlohmann/-subdirectory
- the CMake library and project's name is now
nlohmann_json_schema_validator
Instead of doing non-standard acrobatics to find the json.hpp
now find_package is used in order to find NLohmann's package
Co-Authored-By: Patrick Boettcher <p@yai.se>
2019-12-05 11:12:23 +01:00
Patrick Boettcher
5b6a6d0331
replace tabs with spaces in README
2019-12-03 16:31:32 +01:00
mxmlnkn
ad8f158284
add support for some built-in string format specifiers: date-time, date, time, ipv4, ipv6
2019-12-03 16:28:54 +01:00
mxmlnkn
64461f5b79
add note about styling with clang-format
2019-12-03 12:18:00 +01:00
Patrick Boettcher
3ec0e69a0b
Add support for plain-name-fragment
...
Plain-name-fragments are something like
file.json#plain
plain here is not a JSON-pointer but a
Location-independent Identifier or plain-name.
Fixes #72
2019-10-23 14:46:34 +02:00
Patrick Boettcher
f0e4421a50
cleanup README
2019-10-22 16:18:51 +02:00
44DD
e14d2896ff
Fix non-compilable code example in README.md
2019-10-11 14:53:57 +02:00
Dominus Iniquitatis
1688c54a6e
Update README.md
2019-06-26 10:17:16 +02:00
Patrick Boettcher
abfa3852f5
README updates and fixes
2019-03-20 16:36:59 +01:00
Patrick Boettcher
746394922a
Use push_back of nlohmann::json_pointer if available.
2019-03-20 14:36:07 +01:00
Patrick Boettcher
7beb40bc61
Complete rewrite of the validator - aiming a 2.0-release
...
Schema a now "parsed" into C++-validator-objects in a first
step and then validation takes place with these objects.
Errors are now handled via a user-provided error-handler
allowing the user to collect all errors at once or bail out
when a certain threshold is reached. Fixes #36 and #8 .
One (sub-)schema can now be referenced with different URIs. Fixes #9
JSON schema draft 7 is now supported. Fixes #35
2018-12-27 16:59:19 +01:00
Patrick Boettcher
16f0ad3180
Add Travis build-tag to README
2018-04-18 14:54:14 +02:00
Bryan Gillespie
2db9c1e426
Fix #28 : Differentiate integer and floating point validation
2018-04-18 14:08:15 +02:00
Patrick Boettcher
2a1f77d084
cmake: allow the building of shared or static libraries
...
Alternative for #15
2018-02-27 11:19:06 +01:00
Patrick Boettcher
6f69d01b58
use #include <nlohmann/json.hpp> to avoid filename clashes
...
alternative for #20
2018-02-27 11:11:55 +01:00
Ian Bell
95e07469ae
Add a runnable and useful exampe
2018-02-24 09:33:05 +01:00
JustCameToHelp
ee3de923f9
Documentation - Fixed file name in Code section
...
The .hpp file name is `json-schema.hpp`
2017-01-17 17:08:20 +01:00
Patrick Boettcher
0e5a5d9b56
validator: check utf-8 string-length
2016-12-29 08:50:06 +01:00
Patrick Boettcher
fd300592c7
README: update compliance-section
2016-12-28 13:50:55 +01:00
Patrick Boettcher
4c985628d1
README: more and more compliant
2016-12-28 13:28:47 +01:00
Patrick Boettcher
5fedc283da
validator: pattern-field implemented
2016-12-27 14:26:26 +01:00
Patrick Boettcher
de05d4d754
README: more comments about what's not compliant
2016-12-27 14:18:47 +01:00
Patrick Boettcher
5e9605b055
validator: update API so that the root-schema-insertion can be located in a try-catch-block
2016-12-27 13:50:45 +01:00
Patrick Boettcher
b2240084fe
validator: rework everything to handle local and remote refs
...
Added json-uri and json-pointer-classes and a schema-preparation-pass.
2016-12-26 23:48:57 +01:00
Patrick Boettcher
42a8b00d1d
validator: $ref implemented for local references
...
But needs more work.
2016-12-24 00:10:48 +01:00
Patrick Boettcher
0789403a4b
validator: items and additionalItems implemented
2016-12-24 00:09:04 +01:00
Patrick Boettcher
6c344f9dcf
validator: uniqueItems implemented for array
2016-12-23 16:29:33 +01:00
Patrick Boettcher
615b4a1fef
validator: implement minItems and maxItems for arrays
2016-12-23 14:43:11 +01:00
Patrick Boettcher
f59b151974
validator: implement minProperties and maxProperties
2016-12-23 10:27:10 +01:00
Patrick Boettcher
e0a69cff39
cmake: allow this project to be used as a cmake-subdirectory
...
Needs to have a json-hpp-target-available.
2016-12-23 09:52:17 +01:00
Patrick Boettcher
94b7e44dfa
cmake: add install-target
2016-12-23 09:51:41 +01:00
Patrick Boettcher
bf4cef21c3
initial commit
2016-12-23 00:04:42 +01:00