File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,25 @@ var (
2525 field .WithDefaultValue (false ),
2626 )
2727
28+ // ConfigurationFields defines the external configuration required for the
29+ // connector to run. Note: these fields can be marked as optional or
30+ // required.
31+ ConfigurationFields = []field.SchemaField {
32+ AccessTokenField ,
33+ EnterpriseTokenField ,
34+ SSOEnabledField ,
35+ GovEnvironmentField ,
36+ }
37+
38+ // FieldRelationships defines relationships between the fields listed in
39+ // ConfigurationFields that can be automatically validated.
2840 // Every Gov Slack instance is an Enterprise Grid instance.
29- Constraints = []field.SchemaFieldRelationship {
41+ FieldRelationships = []field.SchemaFieldRelationship {
3042 field .FieldsDependentOn (
3143 []field.SchemaField {GovEnvironmentField },
3244 []field.SchemaField {EnterpriseTokenField },
3345 ),
3446 }
3547
36- Configuration = field .NewConfiguration ([]field.SchemaField {
37- AccessTokenField ,
38- EnterpriseTokenField ,
39- SSOEnabledField ,
40- GovEnvironmentField ,
41- }, Constraints ... )
48+ Configuration = field .NewConfiguration (ConfigurationFields )
4249)
You can’t perform that action at this time.
0 commit comments