Skip to content

feat: update Speakeasy gen.yaml configuration#370

Merged
louis-sanna-dev merged 4 commits intomainfrom
test-sdk-schema-naming
Feb 25, 2026
Merged

feat: update Speakeasy gen.yaml configuration#370
louis-sanna-dev merged 4 commits intomainfrom
test-sdk-schema-naming

Conversation

@louis-sanna-dev
Copy link
Contributor

@louis-sanna-dev louis-sanna-dev commented Feb 24, 2026

Summary

Update Speakeasy gen.yaml configuration for v2 breaking release, including schema renames and recommended settings.

Changes

Schema Renames

Regenerated SDK with schema renames from dashboard PR https://github.com/mistralai/dashboard/pull/18251.
Applies x-mistral-sdk-name overrides to component schemas for consistent, user-friendly class names.

Old Name New Name
AgentCreationRequest CreateAgentRequest
AgentUpdateRequest UpdateAgentRequest
BatchJobOut BatchJob
BatchJobsOut ListBatchJobsResponse
BatchJobIn CreateBatchJobRequest
ArchiveFTModelOut ArchiveModelResponse
CheckpointOut Checkpoint

And 30+ more renames following the pattern:

  • Request: {Verb}{Entity}Request
  • Response: {Verb}{Entity}Response
  • Entity: {Entity} (no suffix)

gen.yaml Configuration Updates

Applied to all targets (main, Azure, GCP):

Setting Old New
speakeasyVersion 1.685.0 1.729.0
allowedRedefinedBuiltins [id, object] [id, object, input, dir]
constFieldCasing upper normal
fixFlags.asyncPaginationSep2025 - true
fixFlags.conflictResistantModelImportsFeb2026 - true
fixes.nameOverrideFeb2026 - true
imports.paths.errors "" "errors"
maxMethodParams 15 999
multipartArrayFormat legacy standard

Makefile Updates

Added new commands:

  • make generate - Generate all SDKs (speakeasy run -t all)
  • make check-config - Check gen.yaml against recommended defaults

Verification

All 42 schema renames verified:

Checked 42 renames
✓ All SDK renames OK

Related

@louis-sanna-dev louis-sanna-dev force-pushed the test-sdk-schema-naming branch 3 times, most recently from 480fb6a to 8d6b503 Compare February 25, 2026 13:50
- Add input and dir to allowedRedefinedBuiltins
- Add asyncPaginationSep2025 and conflictResistantModelImportsFeb2026 fixFlags
- Set imports.paths.errors to "errors"
- Increase maxMethodParams from 15 to 999
- Change multipartArrayFormat from legacy to standard
@louis-sanna-dev louis-sanna-dev changed the title feat: SDK schema renames for consistent class naming feat: update Speakeasy gen.yaml configuration f Feb 25, 2026
@louis-sanna-dev louis-sanna-dev changed the title feat: update Speakeasy gen.yaml configuration f feat: update Speakeasy gen.yaml configuration Feb 25, 2026
Add input and dir to match allowedRedefinedBuiltins in gen.yaml config.
- Filter UnknownAgentTool in agent update (context.py)
- Update examples for renamed classes:
  - BatchRequest, UserMessage: import from models module
  - ClassifierTrainingParametersIn -> ClassifierTrainingParameters
  - ClassifierJobOut -> ClassifierFineTuningJob
  - Add type narrowing for ClassifierFineTuningJobDetails
@louis-sanna-dev louis-sanna-dev marked this pull request as ready for review February 25, 2026 17:07
@louis-sanna-dev
Copy link
Contributor Author

@cursor review

@louis-sanna-dev louis-sanna-dev merged commit 72242df into main Feb 25, 2026
9 checks passed
Copy link

@andreaonofrei01 andreaonofrei01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants