Registry / serialization / swaggest-json-schema

swaggest-json-schema

JSON →
library0.12.43phppackagistunverified

High definition PHP structures with JSON-schema based validation

composer require swaggest/json-schema
INSTALL
IMPORT
SIG · SWAGGEST-JSON-SCHE
S
swaggest-json-schema
serializationphpv0.12.43
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Schema
use Swaggest\JsonSchema\Schema;

Validate a string against a JSON schema

<?php use Swaggest\JsonSchema\Schema; $schema = Schema::import((object)['type' => 'string']); $result = $schema->in('hello');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.43latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
swaggest-json-schema — pip install swaggest-json-schema · libregistry