apia-open_api 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e57ceb476aadea93941bdf6fdd20c3506ec0b7b341f73fe0ee80b29cb65fb90
|
|
4
|
+
data.tar.gz: 545d4e13d8df442f3b4d4981dc33e0c557291224d4c78cb5ae9124422b0e2688
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
@
|
|
84
|
-
|
|
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?
|
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.
|
|
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-
|
|
11
|
+
date: 2024-10-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|