Skip to content

Conversation

@roh26it
Copy link
Collaborator

@roh26it roh26it commented Dec 22, 2025

Summary

Add additionalProperties: true to prompt-related properties to fix Stainless code generation errors.

Changes

Added type annotations to:

  • parameters (object)
  • template_metadata (object)
  • prompt_metadata (object)
  • tool_choice (object)
  • functions[].items (object)
  • tools[].items (object)

Fixes

Resolves Stainless error:

resource has some properties with an undefined type, which results in a raw JSON field

Added additionalProperties: true to:
- parameters (object)
- template_metadata (object)
- prompt_metadata (object)
- tool_choice (object)
- functions[].items (object)
- tools[].items (object)

This fixes Stainless error about undefined types resulting in raw JSON fields.
…rties

- config: Add additionalProperties to 'config' object in POST /configs
- integration: Add CreateIntegrationResponse schema and reference it
- integration: Add additionalProperties to vertex_service_account_json

Fixes Stainless errors about undefined types resulting in raw JSON fields.
- POST /configs: Changed from {success, data: {id, version_id}} wrapper
  to flat {id, version_id, slug, object}
- GET /configs/{slug}: Changed from {success, data: {config: ...}} wrapper
  to flat object with all config fields
- PUT /configs/{slug}: Changed from {success, data: {version_id}} wrapper
  to flat {version_id, object}

The actual API returns flat objects, not wrapped responses.
The API expects 'config' as an object in POST/PUT requests,
not as a JSON-encoded string. Fixed the schema to use
type: object with additionalProperties: true.
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.

2 participants