lingutest_client 0.2.4 → 0.2.5

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: 8afc37ff56b1df876015bbcb79346a3399358d6543b1a960d2a9d8ba2c45ca52
4
- data.tar.gz: f50ea200dd6df9472969d5a7ba5b6e51f752948d6156b75f24605d358910881a
3
+ metadata.gz: 6eb2319892145efa64cff3f1d7dbeb1a489313deb4cb50ac6bbf36331e56000a
4
+ data.tar.gz: 50aa31db07590bd69f582feb3b8dd817c2e9aafd360eeeb81b0e748f2a95d28b
5
5
  SHA512:
6
- metadata.gz: 8e0fce747d14f6efda5eacb7cede2c3bd87f678c880bcd54d12bcb5458b0098534a9603737c9eef25347d0339c3d7c32d0c6f99c4c5aa680c25d53ec526a2f89
7
- data.tar.gz: c20938a765d78f3c0e7a84993869f8b6f4ba9166a84a628b9c7e1ad823426228bc14bcd24123f6c90a6cda69c6ec6625ed2f40cfe59241f9ed5d3d2973eb5ebd
6
+ metadata.gz: e8998a0b294a52371c3554851705df23b0f044ac85900ecdf2eae2190ce49fd52e893f954f3896cef524975818bddf4645c5b2ab8c35d9381e50f20394031a54
7
+ data.tar.gz: 78e5e042bcc734b28a9a4b7e8713ce95a986fd82085c359b81bd46192548d5cc3bb7950e75b542d5890b18c319b8cdd6f6aff66b168dd45620df6feb8ebf4e51
@@ -7,10 +7,21 @@ module LingutestClient
7
7
  include Api::Resource
8
8
  include Api::Operations::List.module(ExamList)
9
9
 
10
- attribute :id, Types::Coercible::Integer.optional.default(0)
11
- attribute :name, Types::Coercible::String.optional.default('')
10
+ FilterSchema = Dry::Schema.Params do
11
+ config.validate_keys = true
12
+ optional(:page).filled(Types::Coercible::Integer)
13
+ optional(:per_page).filled(Types::Coercible::Integer)
14
+
15
+ optional(:locale_eq).filled(Types::Coercible::String)
16
+ optional(:price_gt).filled(Types::Coercible::Integer)
17
+ end
18
+
19
+ attribute :id, Types::Coercible::Integer.optional.default(0)
20
+ attribute :name, Types::Coercible::String.optional.default('')
21
+ attribute :locale, Types::Coercible::String.optional.default('')
12
22
  attribute :description, Types::Coercible::String.optional.default('')
13
- attribute :price, Types::Coercible::Decimal.optional.default(0)
14
- attribute :updated_at, Types::DateTime.optional.default(nil)
23
+ attribute :price, Types::Coercible::Decimal.optional.default(0)
24
+ attribute :updated_at, Types::DateTime.optional.default(nil)
25
+ attribute :created_at, Types::DateTime.optional.default(nil)
15
26
  end
16
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LingutestClient
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lingutest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatolii Didukh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-13 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable