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 +4 -4
- data/README.md +1 -1
- data/lib/api_schema/serializer_definition.rb +1 -0
- data/lib/api_schema/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: 2b2a8c57cfedd14fc423b49395fd225556142804
|
4
|
+
data.tar.gz: e1f0a3c85c0979b5753047ca82614a7037df9df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/api_schema/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|