simple_json_schema 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/simple_json_schema/validators/integer.rb +1 -0
- data/lib/simple_json_schema/validators/number.rb +1 -0
- data/lib/simple_json_schema/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba091bad31957536ee21fd439a1841fd62bfe9de3183fb5cfdf5e77cfb78d750
|
4
|
+
data.tar.gz: 3b3d9cae644a8d60c00ebc4329168e7de3f69eae71ebf1523cfe11a0edcea7fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fca0fe9bd46eb26ed08ec4bb1be70abf8514b455f783799405a472d09b789555bc823f4329f75daa6dc96365161ed9158a2c386f66be1d17ea9cf6fa4813c31a
|
7
|
+
data.tar.gz: e626dd58a40c94ef679e93f36951d66dfb1d18f0c3a5308240cde33ba6cbe06c4e20fde2649f0cb27dd15732652c02ff52cdb7effdf24f9e38e1f84ca493d324
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[![coverage report](https://gitlab.com/vliper/simple_json_schema/badges/master/coverage.svg)](https://gitlab.com/vliper/simple_json_schema/-/commits/master)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/simple_json_schema.svg)](https://badge.fury.io/rb/simple_json_schema)
|
6
6
|
|
7
|
-
This implementation of the JSON Schema validation is based on the [JSONSchemer](https://github.com/davishmcclurg/json_schemer) (WHIT IS THE RECOMMENDED TO BE USED!)
|
7
|
+
This implementation of the JSON Schema validation is based on the [JSONSchemer](https://github.com/davishmcclurg/json_schemer) **(WHIT IS THE RECOMMENDED TO BE USED!)**, but only implement the Draft7, whit [limitations](https://gitlab.com/vliper/simple_json_schema/-/blob/master/spec/simple_json_schema/json_schema_test_suite_spec.rb#L26) and some feature embedded.
|
8
8
|
|
9
9
|
# Installation
|
10
10
|
|
@@ -72,6 +72,7 @@ Whit options is possible to improve the behavior.
|
|
72
72
|
Some extra implementations on types (THIS IS NOT ON THE DRAFT7 DEFINITION!)
|
73
73
|
|
74
74
|
| Type | Attribute | Description | Allowed values |
|
75
|
+
| ---- | --------- | ----------- | -------------- |
|
75
76
|
| string | required | Will evaluate the `blank?` concept on the string | true/false |
|
76
77
|
| integer | required | Will enforce value != 0 | true/false |
|
77
78
|
| number | required | Will enforce value != 0.0 | true/false |
|