Skip to content

EntityShape#operations should be ordered  #591

@Baccata

Description

@Baccata

Currently, operations (and resources) are exposed from an EntityShape as Sets, backed by HasSets This loses the ordering from the spec, which happens to be useful information to construct routing logic in REST-like protocols.

https://github.com/awslabs/smithy/blob/acc7c95a2052b0597c1ea1eab2a3ed9273092bc5/smithy-model/src/main/java/software/amazon/smithy/model/shapes/EntityShape.java#L28-L29

I'd personally like for the data structure to retain ordering, and for the ordering guarantee to be reflected in the exposed types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions