Changes on the server.json format and the API (#562)

This commit is contained in:
Radoslav Dimitrov 2025-09-29 23:30:35 +03:00 • committed by GitHub
commit b21c6f564d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
package validators_test
import (
"context"
"fmt"
"testing"
@ -1551,7 +1552,7 @@ func TestValidate_RegistryTypesAndUrls(t *testing.T) {
},
}
err := validators.ValidatePublishRequest(serverJSON, &config.Config{
err := validators.ValidatePublishRequest(context.Background(), serverJSON, &config.Config{
EnableRegistryValidation: true,
})
if tc.expectError {