API document: XML doc lists leak into two operation descriptions and collapse in Swagger UI, and anonymous operations list the security schemes #463
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#463
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while #447 was verified. Neither is urgent.
<list>tags reach the document. The descriptions ofPOST /api/users/me/emailandPOST /api/users/{id}/reset-passwordcarry<list type="bullet"><item>…</item></list>from the XML docs inUsersController. Swagger UI sanitises the tags, so the bullet lists collapse into running text. Either write those lists in a form the document filter converts (Markdown list lines), or teachXmlCrefTextDocumentFilterto convert<list>into Markdown, and add a test that no description or summary in the served document holds<list,<itemor<para.BearerandApiTokenalthough they need neither. A per-operation requirement (an operation filter keyed on[Authorize]/[AllowAnonymous]and the action's authentication schemes) would make the document accurate and removes the padlock from anonymous operations in Swagger UI. It changes the generated Angular client for those operations (the credential lines go away), so it wants its own regeneration and a check that the console still attaches its token through the interceptor only.ApiTokencredential inconfiguration.tsfalls back toapiKeys['Authorization']and sends it without theApiTokenprefix. The console sets noapiKeys, so nothing is affected today; a note in the README for people who use the generated client elsewhere is enough.