Diff

mod_http_admin_api/openapi.yaml @ 5293:f60287bba62c

mod_http_admin_api: Add roles to user schema in openapi
author Kim Alvefur <zash@zash.se>
date Thu, 30 Mar 2023 12:06:18 +0200
parent 5292:231d9cc750d9
child 5911:2aa66e928aa0
line wrap: on
line diff
--- a/mod_http_admin_api/openapi.yaml	Thu Mar 30 12:05:05 2023 +0200
+++ b/mod_http_admin_api/openapi.yaml	Thu Mar 30 12:06:18 2023 +0200
@@ -482,6 +482,21 @@
           type: string
           description: Display name of the user
           nullable: true
+        role:
+          type: string
+          description: Primary role of the user
+          nullable: true
+        secondary_roles:
+          type: array
+          description: List of additional roles assigned to the user
+          items:
+            type: string
+        roles:
+          type: array
+          description: List of roles assigned to the user (Legacy)
+          deprecated: true
+          items:
+            type: string
         email:
           type: string
           description: Optional email address for the user (NYI)