apia-open_api 0.1.13 → 0.1.14

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
  SHA256:
3
- metadata.gz: 4294baef2798a1582c488977cfdd6c299a32ac502cb1329b3b2b1feb47dc523f
4
- data.tar.gz: 66b7dd9d6c60d52aaa70193d3339f0aa3a9cfa789093014fba07076a0b32ce7a
3
+ metadata.gz: 4e57ceb476aadea93941bdf6fdd20c3506ec0b7b341f73fe0ee80b29cb65fb90
4
+ data.tar.gz: 545d4e13d8df442f3b4d4981dc33e0c557291224d4c78cb5ae9124422b0e2688
5
5
  SHA512:
6
- metadata.gz: 987224a1e5bbd4b7ab22231f2cde39f6a9b5bf2d8f693988415af75f513c059597c29736efb00534d884625092fc8949b5ebf780c21164684a224e5b717643c9
7
- data.tar.gz: 0dea02d366c0d00a6d3d7aab8e3bb9d95262624cb845386117c5e77f2b627282c8d1e3ec2639dbc5b67079753c1c4f86e8527d402d8f7114900b3ff4d660dce2
6
+ metadata.gz: 0726e8386d9899bcb0deae0c3c23102b05b4cee13af01936d68646f5cbd46e3227f8859759f3f102e6879cbd3cffb404f04b8b29d07f344b093619eac1cd09df
7
+ data.tar.gz: 22417daada1d3b14a68fa0013af4f6112b758d5d4184879ea010a8fe2470c3aa72fcf6dfbbbd46b70f900d13de87c9d0e96b85cf1dfa3573df442fee68dd81c9
@@ -146,7 +146,8 @@ module Apia
146
146
  end
147
147
 
148
148
  def add_lookup_description(description)
149
- return unless @argument.type.klass.ancestors.include?(Apia::LookupArgumentSet)
149
+ return unless @argument.type.klass.ancestors.include?(Apia::LookupArgumentSet) &&
150
+ @argument.type.klass.definition.arguments.length > 1
150
151
 
151
152
  add_description_section(
152
153
  description,
@@ -80,8 +80,12 @@ module Apia
80
80
  @children = @definition.fields.values
81
81
  elsif @definition.type.argument_set?
82
82
  @children = @definition.type.klass.definition.arguments.values
83
- @schema[:description] ||=
84
- "All '#{@definition.name}[]' params are mutually exclusive, only one can be provided."
83
+ if @definition.type.klass.ancestors.include?(Apia::LookupArgumentSet) &&
84
+ @definition.type.klass.definition.arguments.length > 1
85
+
86
+ @schema[:description] ||=
87
+ "All '#{@definition.name}[]' params are mutually exclusive, only one can be provided."
88
+ end
85
89
  elsif @definition.type.object?
86
90
  @children = @definition.type.klass.definition.fields.values
87
91
  elsif enum_definition?
@@ -3,7 +3,7 @@
3
3
  module Apia
4
4
  module OpenApi
5
5
 
6
- VERSION = "0.1.13"
6
+ VERSION = "0.1.14"
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apia-open_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Sturgess
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-13 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport