jhtimmins commented on a change in pull request #14664:
URL: https://github.com/apache/airflow/pull/14664#discussion_r592914377
##########
File path: airflow/api_connexion/openapi/v1.yaml
##########
@@ -2169,6 +2235,73 @@ components:
$ref: '#/components/schemas/PluginCollectionItem'
- $ref: '#/components/schemas/CollectionInfo'
+ RoleCollectionItem:
+ description: Role collection item
+ type: object
+ properties:
+ name:
+ type: string
+ description: The name of the role
+ actions:
+ type: array
+ items:
+ $ref: '#/components/schemas/ActionResource'
+
+ RoleCollection:
+ description: Role Collections
+ type: object
+ allOf:
+ - type: object
+ properties:
+ roles:
+ type: array
+ items:
+ $ref: '#/components/schemas/RoleCollectionItem'
+ - $ref: '#/components/schemas/CollectionInfo'
+
+ ActionCollectionItem:
+ description: Permission Action Collection Item
+ type: object
+ properties:
+ name:
+ type: string
+ description: The name of the permission
+ nullable: false
+
+ ActionCollection:
+ description: Permission Collection
+ type: object
+ allOf:
+ - type: object
+ properties:
+ actions:
+ type: array
+ items:
+ $ref: '#/components/schemas/ActionCollectionItem'
+ - $ref: '#/components/schemas/CollectionInfo'
+
+ Resource:
+ description: A "resource" on which permissions are granted.
+ type: object
+ properties:
+ name:
+ type: string
+ description: The name of the resource
+ nullable: false
+
+ ActionResource:
+ description: The Action-Resource permission item
+ type: object
+ properties:
+ action:
+ type: object
+ $ref: '#/components/schemas/ActionCollectionItem'
+ description: The permission actions
Review comment:
```suggestion
description: The permission action
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]