Quittio next API

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

validate()

public validate(string $json) : array<int, string>
Parameters
$json : string
Return values
array<int, string> —

errors as "path: message"; empty if valid

On this page

Search results