php-json-schema icon indicating copy to clipboard operation
php-json-schema copied to clipboard

High definition PHP structures with JSON-schema based validation

Results 17 php-json-schema issues
Sort by recently updated
recently updated
newest added

For my use case I'm encountering challenges importing schemas that contain a lot of references, so I wanted to try an approach where I would import the schema initially without...

### Background I've been using this library to work with JSON schemas and do some traversal of the schema alongside configuration data to match it. As part of this need,...

In [`Swaggest\JsonSchema\Schema::processNumeric`](https://github.com/swaggest/php-json-schema/blob/1d7cce2dac6844a8a612672ad5936e8c4145e96a/src/Schema.php#L355) the error messages regarding maximum/minimum and exclusive maximum/minimum seem to be reversed. At the maximum it says "Value less than ..." and at the exclusive maximum it says...

Here is an error I got when I try to validate ## JSON Data ``` { "name": "Slideshow", "tag": "section", "class": "slideshow", "max_blocks": 5, "settings": [ { "id": "title", "type":...

We have classes with oneOf and discriminator (type attribute). When exporting an object there are "$ref" in the output which is unwanted for us. Question would be if that could...

```php namespace Swaggest\JsonSchema; interface RemoteRefProvider { public function getSchemaData($url); } ``` Is it possible in `getSchemaData` to get an JSON object, which contains a member named `$ref`? ```json [...] {...

Took me about 30 minutes to figure out that the error message that is being generated [here](https://github.com/swaggest/php-json-schema/blob/master/src/Schema.php#L1048) refers to the fact that my `required` field contained an item twice. Also...

I have the following schema: ``` public static function setUpProperties($properties, Schema $ownerSchema) { $ownerSchema->oneOf = [ Object1::schema(), Object2::schema(), Object3::schema() ]; $ownerSchema->setFromRef(self::className()); $ownerSchema->additionalProperties = false; } ``` where Object1..3 extend from...

Somewhat similar to https://github.com/epoberezkin/ajv-i18n or based on it. To address the concern raised in https://github.com/opis/json-schema/issues/14.

```php trait ClassStructureTrait { use ObjectItemTrait; /** * Add union static here so nested object fields can be type hinted as such: * class Book extends ClassStructure { public Author...