api/symfony/Component/Validator/Constraints/Json.yaml
2024-09-26 02:03:21 -07:00

30 lines
1.1 KiB
YAML

name: Json
class_comment: null
dependencies:
- name: Constraint
type: class
source: Symfony\Component\Validator\Constraint
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: options
default: 'null'
- name: message
default: 'null'
- name: groups
default: 'null'
- name: payload
default: 'null'
comment: "# * Validates that a value has valid JSON syntax.\n# *\n# * @author Imad\
\ ZAIRIG <imadzairig@gmail.com>\n# */\n# #[\\Attribute(\\Attribute::TARGET_PROPERTY\
\ | \\Attribute::TARGET_METHOD | \\Attribute::IS_REPEATABLE)]\n# class Json extends\
\ Constraint\n# {\n# public const INVALID_JSON_ERROR = '0789c8ad-2d2b-49a4-8356-e2ce63998504';\n\
# \n# protected const ERROR_NAMES = [\n# self::INVALID_JSON_ERROR => 'INVALID_JSON_ERROR',\n\
# ];\n# \n# public string $message = 'This value should be valid JSON.';\n# \n\
# /**\n# * @param array<string,mixed>|null $options\n# * @param string[]|null\
\ $groups"
traits:
- Symfony\Component\Validator\Constraint
interfaces: []