Azure / Azure/azure-rest-api-specs

[BUG] PlanetaryComputer doesn't use LRO operation templates

Open
#40,405 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

### API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/orbital/data-plane/Microsoft.PlanetaryComputer/preview/2025-04-30-preview/openapi.json

### API Spec version

2025-04-30-preview

### Describe the bug

The fact that StacCollection is not using standard LRO operation templates is causing issues for JS SDK generation as provided in https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05/

See the discussion here https://github.com/Azure/azure-sdk-for-js/pull/36401#discussion_r2797854518

This would be a breaking change on the server side, and therefore should be addressed in a future API version

### Expected behavior

Use definition as in https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05/

### Actual behavior

In Javascript, the return result is void for long running operation becase no @lroResult is defined. It's not possible to fix this without breaking one or many operations on StacCollection

### Reproduction Steps

Regenerate JS SDK

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the 2025-04-30-preview Microsoft.PlanetaryComputer OpenAPI specification and compare the StacCollection long-running operation definitions with the Azure Core step05 LRO template. Regenerate the JavaScript SDK to reproduce the void result, then confirm the future API version's generated operation returns the intended result without changing the current version.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, openapi
Domain
api, developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.