Skip to content

[TypeSpec Validation] Enforce SDK emitter configuration for greenfield services #31043

@raych1

Description

@raych1

Description
Greenfield services are required to use TypeSpec to describe their service APIs, and an error will be reported if a greenfield service doesn't use TypeSpec.

In addition, we want to have the SDK generated using the TypeSpec in the spec PR instead of using the swagger. This allows both service teams and reviewers to evaluate and test the SDK code at early stage. Otherwise, it is too late to re-work the API spec after the spec PR has been merged and gaps are found in the generated SDK.

This is an example spec PR which is a green field service and didn't configure the SDK emitter. As a result, the spec PR was merged without reporting the SDK generation issue. After the spec PR was merged, it was discovered that the SDK could not actually be generated.

Request
For MPG, .NET, Java, Python, JS, and Go emitters should all be configured in the tspconfig.yaml.

@mikeharder @lirenhe

Metadata

Metadata

Assignees

Labels

Spec PR ToolsTooling that runs in azure-rest-api-specs repo.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions