2.22.6

(fix): Fix ObjectDisposedException when retrying HTTP requests with a body. The CloneRequestAsync method now deep-copies the request content into a new MemoryStream instead of reusing the original (already-disposed) content reference. Also fixes multipart retry cloning to preserve per-part headers (e.g. Content-Disposition) instead of incorrectly copying the parent multipart headers onto each part.

2.22.5

(fix): Fix mock server test generation for singleProperty union variants to use the correct property wire name from the union type definition (e.g. “value”) instead of the discriminant variant name (e.g. “integerValue”).

(fix): Fix CS0555 build error for union types with optional member types where the underlying type name matches the inner class name, causing a self-conversion implicit operator.

(fix): Fix union deserialization to strip the discriminant property from JSON before deserializing samePropertiesAsObject variants, preventing the discriminant from leaking into AdditionalProperties.

(fix): Fix OAuth client credentials custom flow to pass additional properties and scopes to the OAuthTokenProvider constructor.

(fix): Align OAuth custom property filter with Java generator: skip only literal properties instead of filtering to only primitives. This ensures non-primitive, non-literal custom OAuth properties are correctly propagated.

2.22.4

(chore): Use generator-cli JS API directly instead of subprocess spawning. Remove generator-cli from Docker image since it is now bundled via esbuild.