api_schema 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c1107551e7ed1520bba3597273977a97dcc3403
4
- data.tar.gz: 989b92b544a4ac765456010a52e19070385bd39b
3
+ metadata.gz: 2b2a8c57cfedd14fc423b49395fd225556142804
4
+ data.tar.gz: e1f0a3c85c0979b5753047ca82614a7037df9df1
5
5
  SHA512:
6
- metadata.gz: b06b88aa9b4490e6751978ed85ce84c2072d62c78a0a3aeae5908966a9f94d251d8fa73be1acfe546c2830af9587994cdd1ac8e7ad774a872df95ce7ea4a852a
7
- data.tar.gz: 3ae635ef41a88bbf511e483dbbe9a88ff7a09b73e68043e8bf74e680b0adde4cfe895890b2bddb31bdfc6caa37d8427982701e239b9e3d393445a0935ce129f6
6
+ metadata.gz: ef3a48ce41d582889c64fb6d5e7b766136c105aaece4ea8c4d9d6849a9970bca8a3e40084148c25e5d2ea7de243be7bf0920238c77d4c0135fa59ff81bd45953
7
+ data.tar.gz: d17267333e18d5ba621f5a85926d41d7e3498b40ac0823c9aff3e4e41228409068362db4043526baadef497b0febd86ebe8e8071fad488505580c32778e31bc1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Api Schema
1
+ # Api Schema [![Build Status](https://travis-ci.org/qonto/api_schema.svg?branch=master)](https://travis-ci.org/qonto/api_schema)
2
2
  Provides a framework and DSL for describing APIs and generate swagger-json using minimalist, schema.db-like syntax.
3
3
 
4
4
  <p align="center">
@@ -40,6 +40,7 @@ module ApiSchema
40
40
 
41
41
  def build_references
42
42
  @prior_references.each do |pr|
43
+ raise "Model #{pr.id} is not defined" unless self.class.serializers[pr.id]
43
44
  reference = self.class.serializers[pr.id].clone
44
45
  reference.type = pr.type
45
46
  reference.description = pr.desc
@@ -1,3 +1,3 @@
1
1
  module ApiSchema
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Chopey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport