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); }