lacerda 1.0.0.beta2 → 1.0.0.beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e35159525996db21a172b54b47eb0d5f9c1e8c4f
4
- data.tar.gz: 79cf8de3685ca9632dd67ec61f8e2e5720f0beb5
3
+ metadata.gz: b5567a9677e6e74e71de436b212fe88e6a6d800f
4
+ data.tar.gz: 226873bf86be80d8155d55a189083167a9a112fc
5
5
  SHA512:
6
- metadata.gz: 4fa08291be1572c8524b8d7d0c1995335ede5199821ed25eb56584a4c2381c6a996c55cfb9ea446bb0671d8628c32bb145ed0fafe73b76fcf69d0ab79c6e1a21
7
- data.tar.gz: 1278693d32b1e496f5c361a5c27306a85af33559f6aefb3daf1e9c7e6f5ce878cad62eb6d01c19f611bac741ff174bd5635a2426193087476b17a6302d3d4761
6
+ metadata.gz: 1ea27a1271f558ea969470f8e08005015590ead11d55c58fcfed2831270f5a33e17f967af600c06cd9d76dcefe6e2f7d99f2a093a3ac95a70aa8b5cd842aba17
7
+ data.tar.gz: 8a6e7de359afdf2d66e6739b4a21a7efbf492062dee8a06e3d7930317a3d701fcfa8bda05996ff9877fb96e1c83fbd1264ad66db8f0ae4650d658be89ef998ee
@@ -31,7 +31,6 @@ module Lacerda
31
31
  # Parse MSON to an apiary blueprint AST
32
32
  # (see https://github.com/apiaryio/api-blueprint)
33
33
  ast_file = mson_to_ast_json(filename)
34
- raise_parsing_errors(filename, ast_file)
35
34
 
36
35
  # Pluck out Data structures from it
37
36
  data_structures = data_structures_from_blueprint_ast(ast_file)
@@ -37,7 +37,6 @@ module Lacerda
37
37
  @schema['title'] = @id
38
38
  add_description_to_json_schema
39
39
  add_properties_to_json_schema
40
- @schema['additionalProperties'] = false
41
40
  end
42
41
 
43
42
  def to_json
@@ -29,6 +29,7 @@ module Lacerda
29
29
  end
30
30
 
31
31
  def validate_data!(data)
32
+ require 'byebug' ; byebug
32
33
  JSON::Validator.validate!(@schema, data)
33
34
  end
34
35
 
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '1.0.0.beta2'
2
+ VERSION = '1.0.0.beta3'
3
3
  end
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: 1.0.0.beta2
4
+ version: 1.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport