Skip to content

@added and shared header name but added in different versions. #11648

Description

from the discussion at https://github.com/Azure/azure-rest-api-specs/pull/45405/changes#r3760998866

I refactor some inline header into an alias so that I can customize the prorperty name for JS client. in this case of Storage Blob, the same header "x-ms-content-crc64" was added to different models in different service versions. Some locations have the @added decorator but other locations don't. I had to add one alias for each, because the @added decorator is attached to the property, and had to customize all of these aliases.

https://github.com/Azure/azure-rest-api-specs/pull/45405/changes#diff-d82d8650dde4a68fe127b0c2c713ab7072ae36a3b60d5f424941464da18abe5dR1653

Could there be a better way?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions