Skip to content

Give NamedQuery template its own JsonProperty Order - #1286

Merged
donaldgray merged 1 commit into
developfrom
hygiene/dis-27
Aug 19, 2026
Merged

Give NamedQuery template its own JsonProperty Order#1286
donaldgray merged 1 commit into
developfrom
hygiene/dis-27

Conversation

@tomcrane

Copy link
Copy Markdown
Contributor

What does this change?

NamedQuery.Global and NamedQuery.Template both declared [JsonProperty(Order = 11)], so their relative order in serialised responses was contractually undefined — the observed wire order (name, global, template) held only because Json.NET happens to stable-sort equal Orders by declaration order.

This moves template to Order 12, making the observed order the contractual one. The emitted JSON is byte-identical to today's output — no behavioural change, just removing the dependence on an implementation-detail coincidence.

Same defect class as #1235 (duplicate Orders on ImageStorage/ApiKey/PortalUser); this instance was spotted during that PR but deliberately left as it wasn't on that change's ratified list.

Non-breaking. NamedQuery tests pass (13/13).

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@donaldgray
donaldgray marked this pull request as ready for review August 19, 2026 14:20
@donaldgray
donaldgray requested a review from a team as a code owner August 19, 2026 14:20
@donaldgray
donaldgray merged commit 74e47e0 into develop Aug 19, 2026
2 checks passed
@donaldgray
donaldgray deleted the hygiene/dis-27 branch August 19, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants