We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db54e6a + d47b5a8 commit f870091Copy full SHA for f870091
2 files changed
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Change Log
2
3
+## [2.0.1]
4
+### Updated
5
+- Update data extraction validator to support order parameter
6
+
7
## [2.0.0]
8
### Updated
9
- Update API errors code
lib/rbslicer/utils/validators.rb
@@ -191,6 +191,14 @@ def valid_keys?
191
end
192
elsif key == "query"
193
true
194
+ elsif key == "order"
195
+ if !value.is_a?(Array)
196
+ raise Exceptions::InvalidQueryException, 'The key \'order\' in '\
197
+ 'query has a invalid value.'
198
+ elsif value.empty?
199
200
+ 'query has a empty array.'
201
+ end
202
else
203
raise Exceptions::InvalidQueryException, "This query have the invalid"\
204
"key #{key}"
0 commit comments