'Can I enforce query parameter order in OpenApi?

The reason is for CDN cache entries. Those are specific strings used as cache keys and to invalidate them they need to match. Preferably, I'd like to enforce the query param order so that they always will match the CDN cache keys.



Solution 1:[1]

The solution is to just enforce ordering when building the query string.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alex Agranov