Skip to content

GitHub OpenAPI file fails to generate due to the use of two different parameters as collection indexes. #1535

@darrelmiller

Description

@darrelmiller

image
This is valid OpenAPI because all the paths can be resolved unambiguously. However, cannot create two indexers.
We have a few options:

  • For languages without indexers we can change GetById to be GetByParam1 and GetByParam2. However to ensure we are deterministic we need to change this for all cases even if there is only one indexer.
  • For C# we either drop indexers, we find a deterministic way of picking which parameter will use the indexer, or we mash the two parameters into one and split them back apart if necessary.

Metadata

Metadata

Assignees

Labels

fixedgeneratorIssues or improvements relater to generation capabilities.type:bugA broken experience

Type

No type

Projects

Status

Done ✔️

Relationships

None yet

Development

No branches or pull requests

Issue actions