Body
Bug description
This appears to be a TypeSpec Python emitter bug, not a service-specific Batch bug.
In a TypeSpec-generated Azure Python SDK, BatchClient.begin_terminate_job() crashes when called with the default value for the optional options parameter, or with a default-constructed BatchJobTerminateOptions.
Actual behavior
Generated code leaves content_type = None when the request body is empty, but still unconditionally serializes the content-type header. This raises:
ValueError: No value for given attribute
Body
Bug description
This appears to be a TypeSpec Python emitter bug, not a service-specific Batch bug.
In a TypeSpec-generated Azure Python SDK,
BatchClient.begin_terminate_job()crashes when called with the default value for the optionaloptionsparameter, or with a default-constructedBatchJobTerminateOptions.Actual behavior
Generated code leaves
content_type = Nonewhen the request body is empty, but still unconditionally serializes thecontent-typeheader. This raises: