JsonSchemaGenerator
in package
FinalYes
Generates the JSON Schema (draft 2020-12) of InvoiceData::toArray() from the constructor signatures and mapping attributes, so that the schema never drifts from the model.
Table of Contents
Constants
- SCHEMA_ID : string = 'https://quittio.dev/schema/invoice.schema.json'
Methods
- defaultPath() : string
- generate() : array<string, mixed>
- toJson() : string
Constants
SCHEMA_ID
public
string
SCHEMA_ID
= 'https://quittio.dev/schema/invoice.schema.json'
Methods
defaultPath()
public
static defaultPath() : string
Return values
stringgenerate()
public
generate() : array<string, mixed>
Return values
array<string, mixed>toJson()
public
toJson() : string