protected function generateDictionarySchema(array $dictionaryValue): array
    {
        $schema = ['type' => 'dictionary', 'properties' => []];
        ksort($dictionaryValue);
        foreach ($dictionaryValue as $name => $subvalue) {
            $schema['properties'][$name] = $this->generate($subvalue);
        }
        return $schema;
    }
protected function generateDictionarySchema(array $dictionaryValue): array
    {
        $schema = ['type' => 'dictionary', 'properties' => []];
        ksort($dictionaryValue);
        foreach ($dictionaryValue as $name => $subvalue) {
            $schema['properties'][$name] = $this->generate($subvalue);
        }
        return $schema;
    }
protected function generateDictionarySchema ( array $ dictionaryValue ) : array { $ schema = [ 'type' => 'dictionary' , 'properties' => [ ] ] ; ksort ( $ dictionaryValue ) ; foreach ( $ dictionaryValue as $ name => $ subvalue ) { $ schema [ 'properties' ] [ $ name ] = $ this -> generate ( $ subvalue ) ; } return $ schema ; }
Create a schema for a dictionary

@param array $dictionaryValue
@return array
Create a schema for a dictionary