Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ms-henglu opened this issue May 6, 2024 · 0 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. MachineLearningServices Mgmt This issue points to a problem in the management-plane of the library. Service Attention This issue is responsible by Azure service team.

Comments

@ms-henglu
Copy link
Contributor

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.

{
    "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

@ms-henglu ms-henglu added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label May 6, 2024
@zzhxiaofeng zzhxiaofeng added MachineLearningServices Mgmt This issue points to a problem in the management-plane of the library. Service Attention This issue is responsible by Azure service team. labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. MachineLearningServices Mgmt This issue points to a problem in the management-plane of the library. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants