You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it was sorted as part of this change #45 however the order of tags can matter, for example the openapi code generator can be configured to use only the first tag when generating clients: OpenAPITools/openapi-generator#14465
Please could we preserve the order of tags as specified by users? :)
The text was updated successfully, but these errors were encountered:
cogwirrel
added a commit
to cogwirrel/smithy
that referenced
this issue
Feb 6, 2023
I've noticed that the order of tags is not preserved from the
@tags
trait when the model is converted to OpenAPI.For example, if I have the following model:
The generated spec will include:
Looks like the culprit lines are here:
https://github.com/awslabs/smithy/blob/dc9eb9fa89b3f369b9ea99b1358e0b870039bd71/smithy-openapi/src/main/java/software/amazon/smithy/openapi/model/OpenApi.java#L136
https://github.com/awslabs/smithy/blob/dc9eb9fa89b3f369b9ea99b1358e0b870039bd71/smithy-openapi/src/main/java/software/amazon/smithy/openapi/model/OperationObject.java#L164
It looks like it was sorted as part of this change #45 however the order of tags can matter, for example the openapi code generator can be configured to use only the first tag when generating clients: OpenAPITools/openapi-generator#14465
Please could we preserve the order of tags as specified by users? :)
The text was updated successfully, but these errors were encountered: