home/categories/architecture-patterns/azure-azure-sdk-for-java-sdk-ai-workflow-docs-union-type-wrappers-skill-md
architecture-patternsdevelopment

union-type-wrappers

Add typed getters and setters over BinaryData properties that represent TypeSpec union types in generated Java models. Use when generated classes expose BinaryData for union-typed fields and you need ergonomic, type-safe accessors instead.

Azure
maintainer
Azure
Updated 3/16/2026
Stars
2558
Forks
2162
quick start

Installation and usage

Add typed getters and setters over BinaryData properties that represent TypeSpec union types in generated Java models. Use when generated classes expose BinaryData for union-typed fields and you need ergonomic, type-safe accessors instead.

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use union-type-wrappers