JsonSchemaValidator
in package
FinalYes
Validates JSON input against the shipped invoice schema before hydration (requires the optional package opis/json-schema).
Table of Contents
Methods
- available() : bool
- validate() : array<int, string>
Methods
available()
public
static available() : bool
Return values
boolvalidate()
public
validate(string $json) : array<int, string>
Parameters
- $json : string
Return values
array<int, string> —errors as "path: message"; empty if valid