Skip to content

fix: use string defaults so schemas can include them, but validate them#59

Merged
joanise merged 1 commit intomainfrom
dev.ej/address-pytest-warnings
Mar 24, 2026
Merged

fix: use string defaults so schemas can include them, but validate them#59
joanise merged 1 commit intomainfrom
dev.ej/address-pytest-warnings

Conversation

@joanise
Copy link
Copy Markdown
Member

@joanise joanise commented Mar 19, 2026

When a pydantic field is a class, its default should still be a string
so it can be included in the schemas, but we should request it be
validated with `validate_default=True` so it gets converted correctly by
the before validator.
@joanise joanise requested a review from marctessier March 19, 2026 13:40
@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com bot commented Mar 19, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  hfgl/config/__init__.py  59% smaller

Copy link
Copy Markdown
Collaborator

@marctessier marctessier left a comment

Choose a reason for hiding this comment

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

I did not see issues.

@joanise joanise merged commit b66f96a into main Mar 24, 2026
2 checks passed
@joanise joanise deleted the dev.ej/address-pytest-warnings branch March 24, 2026 14:39
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