Cristian Le
4bff849b25
Reformat header file to be more readable
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 11:56:00 +02:00
Cristian Le
e5508ac4a3
Enable intel toolchain CI
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:40:33 +02:00
Cristian Le
d3fee3c0ae
Enable code coverage
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:40:33 +02:00
Cristian Le
d04e6d607f
Remove CMake-install test
...
This will be moved to packaging integration tests
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:40:33 +02:00
Cristian Le
9bc6e025fd
Handle nlohmann dependency
...
Not an ideal approach, but required in order for the exported target to have appropriate linkage.
Maybe this can be designed to become a PRIVATE link library, but then how does it ensure the target is installed?
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:40:32 +02:00
Cristian Le
581f6341d4
Add simple status messages
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:40:32 +02:00
Cristian Le
0f507869c4
Use simplified FetchContent CI
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:40:32 +02:00
Cristian Le
4082eb138c
Modernize cmake file
...
- Added JSON_VALIDATOR_SHARED_LIBS to properly handle shared-library
- Bumped minimum cmake to 3.11 to use no-source add_library
- Bumped minimum cmake to 3.14 to properly support FetchContent (FetchContent_MakeAvailable)
- Converted Hunter package manager to FetchContent (It is plenty mature these days)
- Added namespace to exported target
- Made the cmake file compatible with FetchContent
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:40:32 +02:00
Cristian Le
fe780a7fa3
Apply pre-commit fixes
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:39:23 +02:00
Cristian Le
143b0f6696
Remove travis file
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:39:23 +02:00
Cristian Le
f5e221a976
Add coverage CI
...
Temporarily disabled until setup internally
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:37:23 +02:00
Cristian Le
040ed864ba
Simplify action CIs
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:37:23 +02:00
Cristian Le
061d9d2f3c
Add simple instructions for pre-commit
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:37:23 +02:00
Cristian Le
6a077ce610
Reconfigure github action
...
- Enforce pre-commits
- Move conan to CD workflow
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:37:23 +02:00
Cristian Le
51263d671a
Add basic pre-commit
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:37:23 +02:00
Cristian Le
f94b761828
Add basic presets
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2023-05-10 10:37:23 +02:00
Sven Fink
cae6fad800
Add test for issue 243
2023-01-16 00:01:58 +01:00
Sven Fink
59c9d6200b
For root value, use empty pointer
2023-01-16 00:01:58 +01:00
Robert Joslyn
491ac44026
Fix assumed signed char
...
The code assumes that char is signed, but whether char is signed or
unsigned is implementation defined. On some architectures like PowerPC,
GCC treats char as unsigned resulting in compile errors:
smtp-address-validator.cpp:213:1: error: narrowing conversion of '-32' from 'int' to 'char' [-Wnarrowing]
Fix this by specifying signed char.
2022-12-01 00:20:33 +01:00
Gareth Sylvester-Bradley
dfcb0152e9
Local include for smtp-address-validator.hpp
2022-11-28 13:09:52 +01:00
Christophe Blaess
f156a7fc7b
Remove obsolete sentence in README.md.
2022-11-28 13:08:52 +01:00
Patrick Boettcher
6b17782d6a
update to SOVERSION to 2 (as it should have been done 3 years ago)
...
fix #186
2022-11-26 18:06:09 +01:00
Patrick Boettcher
96a4255938
bump to 2.2.0 (some minor changes/addtions to API)
2022-11-26 17:56:17 +01:00
Gene Hightower
fd622c040b
Use Ragel generated RFC-5321/RFC-6531 parsrr
...
Mailbox address parser from <https://github.com/gene-hightower/smtp-address-validator >
2022-11-26 17:51:37 +01:00
sebasfalcone
56bb4a4af4
CL: Restored CMakeLists to original state
2022-10-29 19:03:36 +02:00
sebasfalcone
2a2d2d25d1
CL: Splited regex string to improve readability
2022-10-29 19:03:36 +02:00
sebasfalcone
f24f8f4203
CL: removed uri from WILL_FAIL list
2022-10-29 19:03:36 +02:00
sebasfalcone
e1e6581b05
CL: encapsulation
2022-10-29 19:03:36 +02:00
sebasfalcone
e39c1aef5b
CL:
...
- Added tests for URI format
- Added URI format validationCL:
2022-10-29 19:03:36 +02:00
Sam V
1063c9adba
Make JSON_VALIDATOR_BUILD_EXAMPLES and JSON_VALIDATOR_BUILD_TESTS overridable by user
...
Resolves pboettch/json-schema-validator#195
2022-09-20 18:24:12 +02:00
Sam V
5b3200f839
Use find_dependency in PackageConfig file
...
pboettch/json-schema-validator#207
2022-09-10 08:45:39 +02:00
Francesco Biscani
1b27d5cf01
Increase the verbosity of the error message produced when there are undefined references.
2022-09-03 09:24:09 +02:00
Erwin Nindl
0efd3ae507
Build conan package with Github actions
2022-09-03 09:22:23 +02:00
Erwin Nindl
1c126b6f3d
Updates conanfile.py
2022-09-03 09:22:23 +02:00
Chris Wright
e1e48ddbe0
Replace dynamic_cast with member functions ( #210 )
2022-09-02 17:50:07 +02:00
res0nance
5ec1961439
cmake: add option to disable installing targets
2022-09-02 17:47:53 +02:00
res0nance
c7325ae932
ci: update build container to v2.4.0
2022-09-01 20:07:44 +02:00
res0nance
793b85ce12
chore: use to_string() for json_pointers
2022-09-01 20:07:10 +02:00
res0nance
87252bb5ce
ci: add CI for the minimum supported version
2022-08-24 18:59:13 +02:00
res0nance
d2210f65da
chore: use to_string() to avoid warning
2022-08-24 18:59:13 +02:00
res0nance
0bbb0da522
ci: run on main branch and update nlohmann-json version
2022-08-24 18:59:13 +02:00
Patrick Boettcher
4f67636760
ref-schema: create a new ref-schema when default-value is present
...
Default-values on schemas with a $ref field are now stored within
a new reference schema which links to the original reference schema.
It contains the default value and keeps a strong reference (shared_ptr)
to the original reference.
Fixes #209
2022-06-27 10:30:11 +02:00
Martin KOCH
c6cb3d4c2d
mention default value processing in the README
2022-06-06 10:09:55 +02:00
Martin KOCH
5e5918d2ae
distinguish between schema_ref and type_schema
2022-06-06 10:09:51 +02:00
Patrick Boettcher
6cb497822b
deeper test $refs with default-values
2022-06-06 10:08:43 +02:00
Patrick Boettcher
61d8b6deb4
make default-values work for stacked $refs
2022-06-06 10:08:43 +02:00
Patrick Boettcher
c2656586f9
more complex default-value-tests - fails
2022-06-06 10:08:43 +02:00
Martin KOCH
686f3b1cc5
Support override of default value when using referenced schemas ( #189 )
2022-06-06 10:08:43 +02:00
Matthias Deimbacher
0d563960cd
Fix explicit conversion to string
2022-06-06 08:59:43 +02:00
Leon De Andrade
8e4751f6f7
Add dll export macro to format check
2022-01-01 18:30:55 +01:00