Repository navigation
display task tags - #56
Conversation
|
I'd like to be able to review the filtering separately. Could you please separate the display and the filtering in two MR? Also, it seems there is another change about deprecating example lists that is not mentioned in the MR description. Could you explain what is this about? |
Indeed but it is the opposite: examples are lists (always have been) and now non-lists give a warning. Changelog describes it. PR description does not indeed. |
|
Weird that Pydantic allows to use non-lists as examples. I think we should not allow it (i.e. no deprecation but a straight error) |
|
Pydantic doesn't even complain when converting the model to a JSON schema import json
from pydantic import BaseModel, Field
class User(BaseModel):
name: str = Field(examples="someone")
print(json.dumps(User.model_json_schema(), indent=2))To compare import json
from pydantic import BaseModel, Field
class User(BaseModel):
name: str = Field(examples=["someone"])
print(json.dumps(User.model_json_schema(), indent=2))Only this would raise an error from jsonschema import Draft202012Validator
from pydantic import BaseModel, Field
class User(BaseModel):
name: str = Field(examples="someone")
schema = User.model_json_schema()
Draft202012Validator.check_schema(schema) |
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
loichuder
left a comment
There was a problem hiding this comment.
Just pushed a commit to tweak the doc. All good otherwise 👍
PR summary
ewokstasksdirectiveAI Disclosure
🤖 Generated with Claude Code