Skip to content

Conversation

@fpinto-cdd
Copy link
Contributor

Ref: #727

jtrobles-cdd and others added 7 commits October 25, 2024 21:45
Attempting to generate a JSON Schema using
`pydantic.BaseModel.model_json_schema()` or
`pydantic.TypeAdapter.json_schema()` fails with the following error message:

> pydantic.errors.PydanticInvalidForJsonSchema:
>   Cannot generate a JsonSchema for core_schema.PlainValidatorFunctionSchema ({
>     'type': 'no-info',
>     'function': <function _RutPydanticAnnotation.__get_pydantic_core_schema__.<locals>.validate_from_str at 0x…>
>   })

This commit fixes the above error by implementing `__get_pydantic_json_schema__`
to override the generated JSON Schema.
…generation-fails

extras: Fix generation of JSON Schema for Pydantic `Rut` type
chore(deps): Update `mypy` from 1.11.2 to 1.13.0
@fpinto-cdd fpinto-cdd added task Task or chore kind: deploy Deployment labels Oct 28, 2024
@fpinto-cdd fpinto-cdd self-assigned this Oct 28, 2024
@fpinto-cdd fpinto-cdd requested a review from a team as a code owner October 28, 2024 12:59
@sonarqubecloud
Copy link

@fpinto-cdd fpinto-cdd merged commit 7d78adf into master Oct 28, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: deploy Deployment task Task or chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants