Jan 5, 2026
Transforms

Sam El-Borai
Customer Engineer
Transforms let you reshape your OpenAPI spec during SDK generation without editing the source file. Define transforms in your stainless.yaml config file, and Stainless applies them automatically.
Use transforms to:
Fix incorrect types in auto-generated specs
Add missing required fields while you fix the source spec
Rename properties to avoid language conflicts
Add Stainless metadata (
x-stainless-naming,x-stainless-skip)Remove incorrect defaults or deprecated fields
Read more about transforms in our deep-dive post or the transforms guide.