Skip to content

[Python] Model-only TypeSpec project rejected by no-sdk-clients #11794

Description

@Nishanth-MS

Problem

Azure/azure-rest-api-specs#44723 changes only Go-scoped client names in:

specification/eventgrid/data-plane/EventGridSystemEvents/propertyNameOverrideGo.tsp

Go SDK validation succeeds, but Python SDK validation fails with:

@typespec/http-client-python/no-sdk-clients:
The Python emitter did not find any SDK clients in this TypeSpec program.

Failed spec PR: Azure/azure-rest-api-specs#44723

Failed Python validation: https://dev.azure.com/azure-sdk/29ec6040-b234-4e31-b139-33dc4287b756/_build/results?buildId=6672449

Project shape

EventGridSystemEvents is intentionally a model-only system-events catalog. It defines an @service namespace and event models but no HTTP operations or SDK client interfaces.

Its Python output contributes models to sdk/eventgrid/azure-eventgrid.

Regression boundary

Generation succeeds with:

  • @azure-tools/typespec-python 0.61.3
  • @typespec/http-client-python 0.28.3
  • typespec-client-generator-cli 0.32.1

Generation fails with:

  • @azure-tools/typespec-python 0.63.3
  • @typespec/http-client-python 0.35.1
  • typespec-client-generator-cli 0.33.1

The old, previously successful specification also fails under the newer toolchain, so this is independent of the Go changes in PR #44723.

The rejecting check appears to have been added by #10203, commit 755fe9a0974439e8c14abc0c2ddf0302e70d9e25.

Previously, model-only packages were explicitly re-enabled by #7348.

Requested resolution

Please restore Python generation support for model-only TypeSpec packages, or provide an approved mechanism for model-only projects to avoid the no-sdk-clients diagnostic.

This currently blocks an otherwise Go-only Azure SDK specification PR.

/cc iscai-msft Yuchao Yan (@msyyc) Chenjie Shi (@tadelesh)

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

    Issue actions