Skip to content

Conversation

@jtoar
Copy link
Contributor

@jtoar jtoar commented Nov 19, 2025

Dumping the model returns the camel-cased variants along with the snake-cased ones:

{
  "id": "...",
  "connect_url": "...",
  "created_at": "...",
  "expires_at": "...",
  "keep_alive": false,
  "project_id": "...",
  "proxy_bytes": 0,
  "region": "...",
  "selenium_remote_url": "...",
  "signing_key": "...",
  "started_at": "...",
  "status": "...",
  "updated_at": "...",
  "avg_cpu_usage": null,
  "context_id": null,
  "ended_at": null,
  "memory_usage": null,
  "user_metadata": null,
  "createdAt": "...",
  "updatedAt": "...",
  "projectId": "...",
  "startedAt": "...",
  "expiresAt": "...",
  "proxyBytes": 0,
  "keepAlive": false,
  "connectUrl": "...",
  "seleniumRemoteUrl": "...",
  "signingKey": "..."
}

This PR configures pydantic to ignore them (the default behavior), which strips them out:

{
  "id": "...",
  "connect_url": "wss://...",
  "created_at": "...",
  "expires_at": "...",
  "keep_alive": false,
  "project_id": "...",
  "proxy_bytes": 0,
  "region": "...",
  "selenium_remote_url": "...",
  "signing_key": "...",
  "started_at": "...",
  "status": "...",
  "updated_at": "...",
  "avg_cpu_usage": null,
  "context_id": null,
  "ended_at": null,
  "memory_usage": null,
  "user_metadata": null
}

@jtoar jtoar changed the base branch from main to next November 19, 2025 03:26
@jtoar jtoar changed the title fix(pydantic): ignore model extras fix(pydantic): ignore model extras in pydantic v2 Nov 19, 2025
@jtoar jtoar merged commit 9cae18c into next Nov 19, 2025
6 of 7 checks passed
@jtoar jtoar deleted the jtoar/pydantic/use-default-for-model-extras branch November 19, 2025 03:27
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