Skip to content

Commit 3a9c4ee

Browse files
authored
add validate_types to model interface (#97)
1 parent c31fd26 commit 3a9c4ee

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [6.9.3] - 2025-10-09
5+
### Fixed
6+
- Add validate_types to model interface
7+
48
## [6.9.2] - 2025-10-03
59
### Fixed
610
- Fix of all types taking type cast into account

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
table_sync (6.9.2)
4+
table_sync (6.9.3)
55
memery
66
rabbit_messaging (>= 1.7.0)
77
rails

lib/table_sync/utils/interface_checker.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,8 @@ def filter(parameters)
101101
:schema:
102102
:parameters: []
103103
:description: "returns an instance of Symbol"
104+
:validate_types:
105+
:parameters:
106+
- - :req
107+
- :data
108+
:description: "validate types of receiving data to make more readable errors"

lib/table_sync/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module TableSync
4-
VERSION = "6.9.2"
4+
VERSION = "6.9.3"
55
end

spec/receiving/dsl_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def primary_keys; end
8383
def table; end
8484

8585
def schema; end
86+
87+
def validate_types(data); end
8688
end
8789
end
8890
end

0 commit comments

Comments
 (0)