public function createSchemaDefinition($schemaString)
    {
        $schemaStorage = new SchemaStorage();

        $schemaStorage->addSchema($this->getSourceUri(), \json_decode($schemaString));
        $data = $schemaStorage->getSchema($this->getSourceUri());
        $data = $this->resolveRefSchemaRecursively($data, $schemaStorage);

        return new JsonSchemaDefinition($data);
    }
public function createSchemaDefinition($schemaString)
    {
        $schemaStorage = new SchemaStorage();

        $schemaStorage->addSchema($this->getSourceUri(), \json_decode($schemaString));
        $data = $schemaStorage->getSchema($this->getSourceUri());
        $data = $this->resolveRefSchemaRecursively($data, $schemaStorage);

        return new JsonSchemaDefinition($data);
    }
public function createSchemaDefinition ( $ schemaString ) { $ schemaStorage = new SchemaStorage ( ) ; $ schemaStorage -> addSchema ( $ this -> getSourceUri ( ) , \ json_decode ( $ schemaString ) ) ; $ data = $ schemaStorage -> getSchema ( $ this -> getSourceUri ( ) ) ; $ data = $ this -> resolveRefSchemaRecursively ( $ data , $ schemaStorage ) ; return new JsonSchemaDefinition ( $ data ) ; }
Create a new JSON Schema definition from a string

@param string $schemaString
@return JsonSchemaDefinition

@throws InvalidJsonException
Create a new JSON Schema definition from a string