@@ 182-188 (lines=7) @@ | ||
179 | if (isset($schema['properties'][ $field_name ]['default'])) { |
|
180 | if (is_array($schema['properties'][ $field_name ]['default'])) { |
|
181 | foreach ($schema['properties'][ $field_name ]['default'] as $default_key => $default_value) { |
|
182 | if ($default_key === 'raw') { |
|
183 | $schema['properties'][ $field_name ]['default'][ $default_key ] = |
|
184 | ModelDataTranslator::prepareFieldValueForJson( |
|
185 | $field, |
|
186 | $default_value, |
|
187 | $this->getModelVersionInfo()->requestedVersion() |
|
188 | ); |
|
189 | } |
|
190 | } |
|
191 | } else { |
|
@@ 191-197 (lines=7) @@ | ||
188 | ); |
|
189 | } |
|
190 | } |
|
191 | } else { |
|
192 | $schema['properties'][ $field_name ]['default'] = ModelDataTranslator::prepareFieldValueForJson( |
|
193 | $field, |
|
194 | $schema['properties'][ $field_name ]['default'], |
|
195 | $this->getModelVersionInfo()->requestedVersion() |
|
196 | ); |
|
197 | } |
|
198 | } |
|
199 | return $schema; |
|
200 | } |