Skip to content

Java — Support Post‑Emit Execution Step in Java Emitter #10236

@lirenhe

Description

@lirenhe

Problem Statement

During SDK generation, there are cases where Java SDKs require post‑generation fixes or adjustments that cannot be cleanly handled inside the TypeSpec emitter logic today. Currently, Java lacks a standard post‑emit hook, which forces teams to rely on ad‑hoc pipeline steps or manual follow‑ups.

We also got the ask from Foundry team that Python SDK generation requires post‑generation scripts to update the generated code.
e.g. update code emitter outputs and to deal with emitted code issues that service team hasn't decided the correct approach for yet.

Proposal

Add post‑emit execution support in the Java emitter
The emitter should invoke a script after code emission but before downstream pipeline steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:javaIssue for the Java client emitter: @typespec/http-client-java

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions