@@ -36,21 +36,21 @@ def rule_config
3636 def create ( variant , config )
3737 case variant
3838 when :contains_key
39- self . contains_key = DefinitionDataTypeContainsKeyRuleConfig . new ( config )
39+ self . contains_key = DataTypeContainsKeyRuleConfig . new ( config )
4040 when :contains_type
41- self . contains_type = DefinitionDataTypeContainsTypeRuleConfig . new ( config )
41+ self . contains_type = DataTypeContainsTypeRuleConfig . new ( config )
4242 when :item_of_collection
4343 self . item_of_collection = DataTypeItemOfCollectionRuleConfig . from_hash ( config )
4444 when :number_range
4545 self . number_range = DataTypeNumberRangeRuleConfig . new ( config )
4646 when :regex
4747 self . regex = DataTypeRegexRuleConfig . new ( config )
4848 when :input_types
49- self . input_types = DefinitionDataTypeInputTypesRuleConfig . new ( config )
49+ self . input_types = DataTypeInputTypesRuleConfig . new ( config )
5050 when :return_type
51- self . return_type = DefinitionDataTypeReturnTypeRuleConfig . new ( config )
51+ self . return_type = DataTypeReturnTypeRuleConfig . new ( config )
5252 when :parent_type
53- self . parent_type = DefinitionDataTypeParentTypeRuleConfig . from_hash ( config )
53+ self . parent_type = DataTypeParentTypeRuleConfig . from_hash ( config )
5454 else
5555 raise UnexpectedRuleType , "Unknown rule type #{ variant } "
5656 end
@@ -63,7 +63,7 @@ def self.create(variant, config)
6363 end
6464 end
6565
66- DefinitionDataTypeContainsKeyRuleConfig . class_eval do
66+ DataTypeContainsKeyRuleConfig . class_eval do
6767 def to_h
6868 {
6969 key : self . key ,
@@ -79,7 +79,7 @@ def self.from_hash(config)
7979 end
8080 end
8181
82- DefinitionDataTypeContainsTypeRuleConfig . class_eval do
82+ DataTypeContainsTypeRuleConfig . class_eval do
8383 def to_h
8484 {
8585 data_type_identifier : self . data_type_identifier . to_h ,
@@ -121,7 +121,7 @@ def to_h
121121 end
122122 end
123123
124- DefinitionDataTypeInputTypesRuleConfig . class_eval do
124+ DataTypeInputTypesRuleConfig . class_eval do
125125 def to_h
126126 {
127127 input_types : self . input_types . map { |input_type | input_type . to_h }
@@ -135,7 +135,7 @@ def self.from_hash(hash)
135135 end
136136 end
137137
138- DefinitionDataTypeInputTypesRuleConfig ::DataTypeInputType . class_eval do
138+ DataTypeInputTypesRuleConfig ::DataTypeInputType . class_eval do
139139 def to_h
140140 {
141141 data_type_identifier : self . data_type_identifier ,
@@ -151,7 +151,7 @@ def self.from_hash(config)
151151 end
152152 end
153153
154- DefinitionDataTypeReturnTypeRuleConfig . class_eval do
154+ DataTypeReturnTypeRuleConfig . class_eval do
155155 def to_h
156156 {
157157 data_type_identifier : self . data_type_identifier ,
@@ -163,7 +163,7 @@ def self.from_hash(config)
163163 end
164164 end
165165
166- DefinitionDataTypeParentTypeRuleConfig . class_eval do
166+ DataTypeParentTypeRuleConfig . class_eval do
167167 def to_h
168168 {
169169 parent_type : self . parent_type ,
0 commit comments