public function transformSchema($api, $endpoint, \stdClass $schemaIn, \stdClass $schemaOut)
    {
        $transformations = $this->getSchemaTransformations($api, $endpoint);
        foreach ($transformations as $transformation) {
            $transformedSchema = $transformation->transformSchema($schemaIn, $schemaOut);
            $schemaOut = $transformedSchema instanceof \stdClass ? $transformedSchema : $schemaOut;
        }
        return $schemaOut;
    }