Skip to content

Bug: valid_json language string missing in /system/Language/en/Validation.php #6623

@rpfennin

Description

@rpfennin

PHP Version

8.1

CodeIgniter4 Version

4.2.6

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

macOS, Linux

Which server did you use?

fpm-fcgi

Database

MySQL 8

What happened?

The valid_json language string is missing in /system/Language/en/Validation.php. I can certainly fix this by providing my own string, but given this is a stock validation rule, it probably aught to exist.

Steps to Reproduce

create a validation rule containing valid_json, and pass invalid json.

Expected Output

I would expect to see something like:
The content field must be valid json.

Instead i get:
Validation.valid_json

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix themgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions