Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP2universalStack: any
query-paramsserializationconsistencyapi
Serialize array params in the format the backend already accepts
Match the existing arrayFormat (e.g. comma) the backend expects so the same param style is used consistently across calls.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetypescript
| 1 | stringify({ tickerIds }); // repeated-keys, differs from other calls |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | stringify({ tickerIds }, { arrayFormat: 'comma' }); // consistent with existing calls |
Explanation (EN)
Objašnjenje (HR)