Validate a simple representation and return the internal value. The provided data may be `empty` if no representation was included in the input. May raise `SkipField` if the field should not be included in the validated data.
(self, data=empty)
| 523 | return (False, data) |
| 524 | |
| 525 | def run_validation(self, data=empty): |
| 526 | """ |
| 527 | Validate a simple representation and return the internal value. |
| 528 | |
| 529 | The provided data may be `empty` if no representation was included |
| 530 | in the input. |
| 531 | |
| 532 | May raise `SkipField` if the field should not be included in the |
| 533 | validated data. |
| 534 | """ |
| 535 | (is_empty_value, data) = self.validate_empty_values(data) |
| 536 | if is_empty_value: |
| 537 | return data |
| 538 | value = self.to_internal_value(data) |
| 539 | self.run_validators(value) |
| 540 | return value |
| 541 | |
| 542 | def run_validators(self, value): |
| 543 | """ |