Skip to content

Conversation

@DevTGHa
Copy link
Collaborator

@DevTGHa DevTGHa commented Jan 12, 2026

Fix typegen raising exception

Summary

Type generation from pydantic model for the frontend was raising exception below.
This is fix for the issue.

  File "C:\dev\plugin\colourcal\backend\.venv\Lib\site-packages\pydantic\json_schema.py", line 2442, in handle_invalid_for_json_schema
    raise PydanticInvalidForJsonSchema(f'Cannot generate a JsonSchema for {error_info}')
pydantic.errors.PydanticInvalidForJsonSchema: Cannot generate a JsonSchema for core_schema.IsInstanceSchema (<class 'open_vp_cal.core.structures.ProcessingResults'>)

For further information visit https://errors.pydantic.dev/2.12/u/invalid-for-json-schema
Error: Failed to export OpenAPI schema

@DevTGHa DevTGHa self-assigned this Jan 12, 2026
@DevTGHa DevTGHa added the bug Something isn't working label Jan 12, 2026
serialize_nested cause a differece between generated datastructure
and actual json serialised datastructure.

Removing to resolve it.
@DevTGHa DevTGHa force-pushed the fix_type_gen_from_schema branch from 44da892 to 4f04344 Compare January 13, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants