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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4162d53c786e05765654e3aad9162e8d765c481d
4
- data.tar.gz: d7d01a44db14c45dc3e372c156a86a4440e5d313
3
+ metadata.gz: 57daf037b584866759b6fda0e5ffdc0d124340bd
4
+ data.tar.gz: 0d4720ed2cecf5a8fed97a67401a1334dabb849e
5
5
  SHA512:
6
- metadata.gz: 077fadda0f1b63175e75bbe296b3701e36d491a36f1a8becc33dee816052ef919f6b296cb44474d59e3347b15d9d8ec427b18a76958f9ffaa2702ff5e084462e
7
- data.tar.gz: eda7883fc961b1d47f73e600803ea0a3fa1b1c77541b9a67c7219b36d9232904bd886dfa6b01dfbe859d988a726faa3c5e31f7808265ab4890375f9bd614b78e
6
+ metadata.gz: c8856072ad3ac9bb8fec82844fbd834e937b148c2e14b47ebbe146d7dec00ef85f93f08535353341cd00273ec429d85558d0e11b1d4da4e8ac07883b141fa48b
7
+ data.tar.gz: 37c557b40954d6a9c3aaf2dd700462fb5b4ed7a6d2e32a4bc05f4e084a4ebaeebaa5c715c2f5f94a3bf6974ce347aadc1040c32a62dc2d2d55af9b72b7f07977
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module SwaggerYard
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger_yard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - chtrinh (Chris Trinh)