Skip to content

Commit

Permalink
Merge pull request codeigniter4#6624 from ddevsr/language-valid-json
Browse files Browse the repository at this point in the history
fix: missing `valid_json` in Validation Language
  • Loading branch information
kenjis authored Oct 4, 2022
2 parents 16e2920 + 1d5a678 commit 0d002eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/Language/en/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
'valid_url' => 'The {field} field must contain a valid URL.',
'valid_url_strict' => 'The {field} field must contain a valid URL.',
'valid_date' => 'The {field} field must contain a valid date.',
'valid_json' => 'The {field} field must contain a valid json.',

// Credit Cards
'valid_cc_num' => '{field} does not appear to be a valid credit card number.',
Expand Down
1 change: 1 addition & 0 deletions tests/system/Language/LanguageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ public function MessageBundles()
['RESTful'],
['Router'],
['Session'],
['Test'],
['Time'],
['Validation'],
['View'],
Expand Down
5 changes: 5 additions & 0 deletions user_guide_src/source/changelogs/v4.2.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ Enhancements

none.

Message Changes
***************

- Added missing item ``valid_json`` in ``Language/en/Validation.php``

Changes
*******

Expand Down

0 comments on commit 0d002eb

Please sign in to comment.