Skip to content

[Bug]: [http-client-python] unused ErrorDetails model exposed #7761

Open
@kristapratico

Description

@kristapratico
Member

Describe the bug

An ErrorDetails model is exposed under models that is not used in the API.

APIview: https://spa.apiview.dev/review/d48830fcdd2c4713b6344d61ae626d5e?activeApiRevisionId=e6f9f621b7d546c1b7ee68713dddac62

Apparently, it is being used as an error output, but we should have a way to hide it from the public surface.

Reproduction

https://azure.github.io/typespec-azure/playground/?c=aW1wb3J0ICJAYXp1cmUtdG9vbHMvdHlwZXNwZWMtxhVjb3JlIjsK3itjbGllbnQtZ2VuZXJhdG9y0TbIKi9yZXN01Rl2ZXJzaW9uaW5nIjsKCnVzaW5nIEHEbC5Db3JlO9ESLlRyYWl0c88Z5QCIR%2BgAh807UmVzdMgMVsltOwoKQHNlcnZpY2UKQOcAhGVkKMchcykKbmFtZXNwYWNlIFTFQQphbGlhcyBTxjTmAIUgPSBOb8Z8UmVxdWVzdElkICYKIMQWb25kaXRpb25hbMcbc8caUmVwZWF0YWJsZcgZOwrIXk9w5ADB5ACBID3sAPRSZXNvdXJjZcogPO0AiSwgRXJyb3JEZXRhaWxzPuQA3WRvYygiQ2xvdWQgSGVhbHRoIERhdGEgUGxhbmUgYXBpIOcA9XMiKQplbnVt6AEccyB7CiAgxj%2FlAIIgTW9uaXRvcsdHTW9kZWxz100gMjAyNS0wNi0xOC1wcmV2aWV3IinET3VzZURlcGVuZGVuY3ko6wDayHYudjFfMF9QxjRfMsQ1dsRNXzA2XzE4X8dNOiAi02IsCn0KCkBl5AEC5wD4VG9wIExldmVsIMUWIG9iamVjdC4iKQpt5AC%2F7QEu6wDwU3BlY2lmaWPGICBDb2RlIGZvciBhbsZIxEEgIGNvZGU6IHN0cuYCR8g9yE9hYm91dCB0aGXMNG1lc3NhZ2U%2F0zhBZOgCKSBk1kNzxkRkYXRhPzogUmVjb3JkPMZIPjvlAPxy5wIgKCJzaWduYWzkAdXmAOpTxRDmAORrZXkKICDkAtnqAId9CgppbnRlcmbkAurGLeYBEmdldCBp7AKS6QKFUmVhZDzGKywge33kAm4gIGxpc9gwTGlzdMcw5gCv&e=%40azure-tools%2Ftypespec-client-generator-core&options=%7B%7D

Checklist

  • Follow our Code of Conduct
    Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
    Check that this is a concrete bug. For Q&A open a GitHub Discussion.
    The provided reproduction is a minimal reproducible example of the bug.

Activity

added
emitter:client:pythonIssue for the Python client emitter: @typespec/http-client-python
and removed on Jun 26, 2025
msyyc

msyyc commented on Jun 27, 2025

@msyyc
Contributor

Hi @kristapratico, ErrorDetails is actually used when http response error is raised which is not showed in ApiView:

Image

self-assigned this
on Jun 27, 2025
yurinh-microsoft

yurinh-microsoft commented on Jun 30, 2025

@yurinh-microsoft
Member

@msyyc can we resolve/close this bug then?

msyyc

msyyc commented on Jul 1, 2025

@msyyc
Contributor

@msyyc can we resolve/close this bug then?

@kristapratico for confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingemitter:client:pythonIssue for the Python client emitter: @typespec/http-client-python

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @kristapratico@iscai-msft@msyyc@yurinh-microsoft

      Issue actions

        [Bug]: [http-client-python] unused ErrorDetails model exposed · Issue #7761 · microsoft/typespec