Skip to content

tsp - add support for bytes and handle final-state-schema#1504

Merged
dolauli merged 1 commit into
Azure:mainfrom
dolauli:tsp-brown
Aug 14, 2025
Merged

tsp - add support for bytes and handle final-state-schema#1504
dolauli merged 1 commit into
Azure:mainfrom
dolauli:tsp-brown

Conversation

@dolauli

@dolauli dolauli commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

This pull request introduces an enhancement to the handling of long-running operations (LROs) and refines standard scalar schema generation in the TypeSpec PowerShell converter. The most notable change is the automatic addition of a final result response for LROs when missing, ensuring consistent API response definitions. Additionally, the schema for the "bytes" scalar type is updated for better alignment with expected types.

Long-running operation (LRO) improvements:

  • Automatically adds a 200 status code response for the final result of a long-running operation in addResponses if it does not already exist, including proper schema and media type information.

Schema generation refinements:

  • Updates the schema for the standard "bytes" scalar type to use SchemaType.ByteArray instead of { type: "string", format: "bytes" } for improved consistency.

@dolauli
dolauli merged commit db772f6 into Azure:main Aug 14, 2025
103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant