Enum query-string parameters and route segments take declared names only #329
No reviewers
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!329
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/327-query-enum-names"
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?
Enum query-string parameters and route segments accept declared names only (decision Q-API-3 on #260, rule as Q-API-1). Digit strings and undefined values answer 400 with
errors.<param>listing the valid names.EnumNameModelBinderand provider, inserted first inModelBinderProviders. They cover enum and nullable-enum parameters bound from the query, the route or no attribute. Body, form and header bindings are untouched, and future parameters are covered automatically.GET /api/clients:presence,sort.GET /api/dhcp-option-catalog:protocolVersion.POST /api/dhcp-services/{kind}/start|stop:kind.QueryLogControlleralready parsed names only.RequestEnumNamesholds the name table and the matching for both the body converter (#323) and the binder, so query, route and body accept the same spellings, wire aliases included.DhcpServiceKindEnumdescription changed. The OpenAPI snapshot and the Angular client are regenerated in their own commit (one line each).Verified: two verifier passes. Red without the registration is 17 of 38. Build has 0 warnings, csharpier is clean, and
Ninlil.Web.Testspasses (2276, without the Docker-only ones). Angular lint, build and tests pass (1648).Closes #327
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK