Skip to content

Commit de4c43e

Browse files
20250306 Fixed API Gateway bug with unsorted paths
1 parent 0b395b6 commit de4c43e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/v5.2/apigateway.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ include "{{ ncgconfig.nms.visibility_dir }}{{ declaration.location.uri }}-{{ v }
2323
{% endfor %}
2424

2525
{% if declaration.paths -%}
26-
{% for path in declaration.paths %}
26+
{% for path in declaration.paths|sort(attribute='path', reverse = True) %}
2727
location {% if '{' not in path.path %}={% else %}~{% endif %} {{ declaration.location.uri }}{{ path.path | regex_replace('{(.*?)}','(.*)') }} {
2828
{% for method in path.methods -%}
2929
# {{ method.method|upper }} - operationId: {{ method.details.operationId }}

0 commit comments

Comments
 (0)