mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
fix: use enum for instance feature in system api (#6682)
* fix: use enum for instance feature in system api * add feature.proto to lint ignore
This commit is contained in:
parent
9696fde676
commit
827ce8809d
@ -19,6 +19,7 @@ lint:
|
||||
- zitadel/auth.proto
|
||||
- zitadel/change.proto
|
||||
- zitadel/event.proto
|
||||
- zitadel/feature.proto
|
||||
- zitadel/idp.proto
|
||||
- zitadel/instance.proto
|
||||
- zitadel/management.proto
|
||||
|
10
proto/zitadel/feature.proto
Normal file
10
proto/zitadel/feature.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package zitadel.feature.v1;
|
||||
|
||||
option go_package ="github.com/zitadel/zitadel/pkg/grpc/feature";
|
||||
|
||||
enum InstanceFeature {
|
||||
INSTANCE_FEATURE_UNSPECIFIED = 0;
|
||||
INSTANCE_FEATURE_LOGIN_DEFAULT_ORG = 1;
|
||||
}
|
@ -6,6 +6,7 @@ import "zitadel/instance.proto";
|
||||
import "zitadel/member.proto";
|
||||
import "zitadel/quota.proto";
|
||||
import "zitadel/auth_n_key.proto";
|
||||
import "zitadel/feature.proto";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
@ -894,8 +895,7 @@ message FailedEvent {
|
||||
|
||||
message SetInstanceFeatureRequest {
|
||||
string instance_id = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
// the feature (id) according to [internal/domain/feature.go]
|
||||
int32 feature_id = 2 [(validate.rules).int32 = {gt: 0}];
|
||||
zitadel.feature.v1.InstanceFeature feature_id = 2 [(validate.rules).enum = {not_in: 0, defined_only: true}];
|
||||
// value based on the feature type
|
||||
oneof value {
|
||||
option (validate.required) = true;
|
||||
|
Loading…
Reference in New Issue
Block a user