Azure / Azure/azure-rest-api-specs

[BUG] Microsoft.MachineLearningServices/workspaces/outboundRules@2024-04-01-preview returns field not defined in the swagger

Open
#28,982 0 comments 0 reactions 0 assignees View on GitHub
bug MachineLearningServices Mgmt Service Attention
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/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/machineLearningServices.json#L6216C95-L6216C103

### API Spec version

2024-04-01-preview

### Describe the bug

In the GET response of this resource, it returns fields which are not defined in the swagger. For example: "location" and "tags". And the `id` is in a incorrect format.

```json
{
"id": "acctesthenglu562/outboundRules/test21",
"location": null,
"name": "test21",
"properties": {
"category": "UserDefined",
"destination": "conda.anaconda1.org",
"status": "Active",
"type": "FQDN"
},
"systemData": null,
"tags": null,
"type": "Microsoft.MachineLearningServices/workspaces/outboundRules"
}
```

### Expected behavior

The `location` and `tags` should not be returned in the GET response because they're not supported.

And the `id` should be like `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}`

### Actual behavior

it returns fields which are not defined in the swagger. For example: "location" and "tags". And the `id` is in a incorrect format.

### Reproduction Steps

1. Create the outbound rule resource.
2. Call GET Api and check the response.

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Inspect specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/machineLearningServices.json around line 6216 and compare the outboundRules GET schema with the reported response. Confirm whether the specification or the service behavior is responsible; done means the response and documented schema agree on location, tags, and the fully qualified resource id.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api, backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.