Skip to content

Commit 04574e9

Browse files
author
Kat Batuigas
committed
RESOURCE_TYPE_ANY is not available when creating a new ACL
1 parent 092fd03 commit 04574e9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This overlay removes the RESOURCE_TYPE_ANY value as an available option for the
2+
# resource_type field in the CreateACLRequest schema.
3+
overlay: 1.0.0
4+
info:
5+
title: Remove RESOURCE_TYPE_ANY from Create ACL Request Body
6+
version: 1.0.0
7+
8+
actions:
9+
# Replace the $ref with an inline enum that excludes RESOURCE_TYPE_ANY
10+
- target: "$.components.schemas.CreateACLRequest.properties.resource_type"
11+
update:
12+
description: |-
13+
The type of resource (topic, consumer group, etc.) this
14+
ACL targets.
15+
enum:
16+
- "RESOURCE_TYPE_TOPIC"
17+
- "RESOURCE_TYPE_GROUP"
18+
- "RESOURCE_TYPE_CLUSTER"
19+
- "RESOURCE_TYPE_TRANSACTIONAL_ID"
20+
- "RESOURCE_TYPE_DELEGATION_TOKEN"
21+
- "RESOURCE_TYPE_USER"
22+
- "RESOURCE_TYPE_REGISTRY"
23+
- "RESOURCE_TYPE_SUBJECT"
24+
type: "string"

0 commit comments

Comments
 (0)