syntax = "proto3";

package wix.devcenter.apps.components.validator;

import "wix/spi/definitions.proto";
import "wix/api/annotations.proto";
import "wix/api/validations.proto";
import "com/wixpress/appservice/api/components_catalog_type.proto";

// SPI config - defines the relation between implementer URL and which types it is validates
message ComponentsValidatorConfig {
  // URI where the SPI Implementer is deployed
  string deployment_uri = 1 [(.wix.spi.base_uri) = true];
  // Component types that will be validated
  repeated com.wixpress.appservice.api.ComponentType component_validation_types = 2 [(.wix.api.minSize) = 1, (.wix.api.maxSize) = 100];
  // Indicates whether the validation should affect real production
  bool test_mode = 3;
}