diff --git a/resources/build-artifact.schema.json b/resources/build-artifact.schema.json index ce100f3e..f7d643a8 100644 --- a/resources/build-artifact.schema.json +++ b/resources/build-artifact.schema.json @@ -184,10 +184,9 @@ "type": "object", "title": "Template source provider", "properties": { - "name": { + "class": { "type": "string", - "title": "Name of the provider", - "description": "Declared in the appropriate provider class" + "title": "Class name of the provider" }, "url": { "type": "string", diff --git a/src/Builder/Artifact/TemplateArtifact.php b/src/Builder/Artifact/TemplateArtifact.php index aaaa9442..b6ade38c 100644 --- a/src/Builder/Artifact/TemplateArtifact.php +++ b/src/Builder/Artifact/TemplateArtifact.php @@ -58,7 +58,7 @@ public function dump(): array 'hash' => $config->buildHash(), 'package' => new PackageArtifact($package), 'provider' => [ - 'name' => $provider::getName(), + 'class' => $provider::class, 'url' => $provider->getUrl(), ], ];