Azure / Azure/autorest

Swagger LintDiff failure

Open
#5,102 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeSpec
Stars
4.8k
Forks
736
Avg merge
2d 14h
Merged PRs (30d)
1

Description

**Before filling a bug**

- [x] have you checked the [faq](https://github.com/Azure/autorest/tree/main/docs/faq.md) for known issues.
- [x] have you checked existing issues

**Describe the bug**

Getting autorest exceptions in swagger LintDiff that is unrelated to the changes made in the [PR](https://github.com/Azure/azure-rest-api-specs/pull/34054) and is blocking merge.

- The readme.md file was not edited as a part of this PR. There have been no recent changes to [package-deprecated](https://github.com/Azure/azure-rest-api-specs/blob/1b21006acb33b7c550126e2ae9ecc7e0cf9e8968/specification/maps/data-plane/readme.md#tag-package-deprecated) section, it is not clear why this error is appearing.

- No changes to any REST API were made as a part of this PR, only issues related to the docs.

- It does not appear that this error is related to any changes that were made to the geolocation.json swagger file, and we need help on [suppressing this error](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/maps/data-plane/readme.md#suppression).

"tag":"[package-deprecated](https://github.com/Azure/azure-rest-api-specs/blob/1b21006acb33b7c550126e2ae9ecc7e0cf9e8968/specification/maps/data-plane/readme.md#tag-package-deprecated)",
"details":"stack: Error: There are multiple operations defined for 'get: /mapData'. You are probably trying to use an input with multiple API versions with an autorest V2 generator,
and that will not work. at NewComposer.visitPath (/home/cloudtest/.autorest/@autorest_core@3.10.4/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:4371:23) at NewComposer.visitPaths (/home/cloudtest/.autorest/@autorest_core@3.10.4/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:4357:22) at NewComposer.process (/home/cloudtest/.autorest/@autorest_core@3.10.4/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:4305:26) at NewComposer.runProcess (/home/cloudtest/.autorest/@autorest_core@3.10.4/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:16339:28) at runNextTicks (node:internal/process/task_queues:65:5) at processImmediate (node:internal/timers:459:9)"

**Expected behavior**
Resolve the autorest exception to unblock the PR and get it merged.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Reproduce the Swagger LintDiff failure for the linked PR and inspect specification/maps/data-plane/readme.md, especially the package-deprecated section and its suppression guidance. Compare the geolocation.json changes with the reported duplicate get:/mapData operations. Done means the autorest exception is resolved or correctly suppressed so the PR can pass and merge.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, openapi
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.