-
[CUST-5054] [BE/P SDK/ TS] Allow experiments with null dataset_name to be listed (#5209)
发布于
2026-02-13 16:24:38 +00:00 - [NA] [BE/SDK] Allow experiments with null dataset_name to be listed
Experiments logged without a dataset_name (null in DB) caused Pydantic
validation errors when the Python SDK deserialized the response, making
it impossible to list any page containing such experiments.- Remove @NotBlank from Experiment.datasetName so the OpenAPI spec no
longer marks dataset_name as required with minLength:1 - Add explicit Preconditions.checkArgument guard in the create endpoint
to preserve the write-side contract - Regenerate OpenAPI spec, Python SDK, and TypeScript SDK
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
- [NA] [SDK] Fix TypeScript compilation: make Experiment.datasetName optional
The ExperimentData interface and Experiment class required datasetName
as a non-optional string, but the API types now return it as optional
after the OpenAPI spec change. Make it optional with a guard in getUrl().Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
- [NA] [BE/SDK] Address PR review: BadRequestException + keep dataset_name required for writes
- Replace Preconditions.checkArgument with BadRequestException so the
validation error returns HTTP 400 instead of 500 - Restore required + minLength:1 for dataset_name in Experiment_Write
schema so the SDK write path still enforces the field - Regenerate Python and TypeScript SDKs
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Co-authored-by: Douglas Blank doug@comet.com
Co-authored-by: Claude Opus 4.6 noreply@anthropic.com下载附件