swagger_yard 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swagger_yard/model.rb +2 -1
- data/lib/swagger_yard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57daf037b584866759b6fda0e5ffdc0d124340bd
|
4
|
+
data.tar.gz: 0d4720ed2cecf5a8fed97a67401a1334dabb849e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8856072ad3ac9bb8fec82844fbd834e937b148c2e14b47ebbe146d7dec00ef85f93f08535353341cd00273ec429d85558d0e11b1d4da4e8ac07883b141fa48b
|
7
|
+
data.tar.gz: 37c557b40954d6a9c3aaf2dd700462fb5b4ed7a6d2e32a4bc05f4e084a4ebaeebaa5c715c2f5f94a3bf6974ce347aadc1040c32a62dc2d2d55af9b72b7f07977
|
data/lib/swagger_yard/model.rb
CHANGED
@@ -23,7 +23,7 @@ module SwaggerYard
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def valid?
|
26
|
-
!id.nil?
|
26
|
+
!id.nil? && @has_model_tag
|
27
27
|
end
|
28
28
|
|
29
29
|
def add_info(yard_object)
|
@@ -35,6 +35,7 @@ module SwaggerYard
|
|
35
35
|
tags.each do |tag|
|
36
36
|
case tag.tag_name
|
37
37
|
when "model"
|
38
|
+
@has_model_tag = true
|
38
39
|
@id = Model.mangle(tag.text) unless tag.text.empty?
|
39
40
|
when "property"
|
40
41
|
@properties << Property.from_tag(tag)
|
data/lib/swagger_yard/version.rb
CHANGED