OEModule\PASAPI\resources\BaseResource::getSchema PHP Method

getSchema() protected static method

Get the schema for the resource type based on the given version.
protected static getSchema ( $version ) : mixed
$version
return mixed
    protected static function getSchema($version)
    {
        $type = static::$resource_type;
        return json_decode(file_get_contents(implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'components', 'schemas', $version, "{$type}.json"))), true);
    }