lacerda 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +3 -0
- data/lib/lacerda/compare/json_schema.rb +8 -8
- data/lib/lacerda/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91f5bd818b023050eb685876d234aee2759844df
|
4
|
+
data.tar.gz: d29587aa04edda7df8aa1a18557e4ac8b986699a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f2e8d8336cdc01a964eefa2c3098370823ad82be164505c87add3701dda4209d5b83657694b6933cb909f98fa50ba85e07733cd3745f082941f5fa706382109
|
7
|
+
data.tar.gz: bdfb411bcb9ca86e2ba1756ab7554674bba344e917b426acd0d568f2dc78ce40a9a28acd18c6292e964a56fb6f72f41a149f1d6df821b88d04893de2d2e849da
|
data/CHANGELOG.markdown
CHANGED
@@ -2,14 +2,14 @@ module Lacerda
|
|
2
2
|
module Compare
|
3
3
|
class JsonSchema
|
4
4
|
ERRORS = {
|
5
|
-
:ERR_ARRAY_ITEM_MISMATCH =>
|
6
|
-
:ERR_MISSING_DEFINITION =>
|
7
|
-
:ERR_MISSING_POINTER =>
|
8
|
-
:ERR_MISSING_PROPERTY =>
|
9
|
-
:ERR_MISSING_REQUIRED =>
|
10
|
-
:ERR_MISSING_TYPE_AND_REF =>
|
11
|
-
:ERR_TYPE_MISMATCH =>
|
12
|
-
:ERR_NOT_SUPPORTED =>
|
5
|
+
:ERR_ARRAY_ITEM_MISMATCH => "The items in the published array don't match the consumer's specification.",
|
6
|
+
:ERR_MISSING_DEFINITION => "The published object is missing a type defined the consumer's specification.",
|
7
|
+
:ERR_MISSING_POINTER => "A JSON pointer could not be resolved.",
|
8
|
+
:ERR_MISSING_PROPERTY => "The published object is missing a property required by your specification.",
|
9
|
+
:ERR_MISSING_REQUIRED => "The published object has an optional property that you marked as required in your specification.",
|
10
|
+
:ERR_MISSING_TYPE_AND_REF => 'A property has to either have a "type" or a "$ref" property.',
|
11
|
+
:ERR_TYPE_MISMATCH => "The published object has a property with a different type than the consumer's specification.",
|
12
|
+
:ERR_NOT_SUPPORTED => 'I don\'t yet know what to do when the consumer\'s specification has a "$ref" defined and the publisher\'s specification has a "type".'
|
13
13
|
}
|
14
14
|
|
15
15
|
attr_reader :errors
|
data/lib/lacerda/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lacerda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jannis Hermanns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|