Skip to content

Commit 114ba45

Browse files
authored
chore: fix swagger type of AuditLog AdditionalFields (#17286)
1 parent d0aff04 commit 114ba45

File tree

5 files changed

+7
-19
lines changed

5 files changed

+7
-19
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codersdk/audit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ type AuditLog struct {
171171
Action AuditAction `json:"action"`
172172
Diff AuditDiff `json:"diff"`
173173
StatusCode int32 `json:"status_code"`
174-
AdditionalFields json.RawMessage `json:"additional_fields"`
174+
AdditionalFields json.RawMessage `json:"additional_fields" swaggertype:"object"`
175175
Description string `json:"description"`
176176
ResourceLink string `json:"resource_link"`
177177
IsDeleted bool `json:"is_deleted"`

docs/reference/api/audit.md

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/api/schemas.md

Lines changed: 3 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy