From 92a52e90faa9d2940909e17b4a35efc010cda8c7 Mon Sep 17 00:00:00 2001 From: Mark Rushakoff Date: Mon, 18 Mar 2019 16:38:30 -0700 Subject: [PATCH] fix(swagger): synchronize permission enum with code --- authz.go | 1 + http/swagger.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/authz.go b/authz.go index 6d0a97e43b..f5fddecdc9 100644 --- a/authz.go +++ b/authz.go @@ -140,6 +140,7 @@ var AllResourceTypes = []ResourceType{ LabelsResourceType, // 11 ViewsResourceType, // 12 DocumentsResourceType, // 13 + // NOTE: when modifying this list, please update the swagger for components.schemas.Permission resource enum. } // OrgResourceTypes is the list of all known resource types that belong to an organization. diff --git a/http/swagger.yml b/http/swagger.yml index b2a228737b..961cca711a 100644 --- a/http/swagger.yml +++ b/http/swagger.yml @@ -5313,6 +5313,12 @@ components: - tasks - telegrafs - users + - variables + - scrapers + - secrets + - labels + - views + - documents id: type: string nullable: true