Skip to content

Commit 6335659

Browse files
committed
test
Signed-off-by: ff137 <[email protected]>
1 parent 1ec56b2 commit 6335659

File tree

3 files changed

+36
-30
lines changed

3 files changed

+36
-30
lines changed

poetry.lock

+32-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydid/did_url.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def __get_pydantic_core_schema__(
4747
cls, source_type: Any, handler: GetCoreSchemaHandler
4848
) -> CoreSchema:
4949
"""Update schema fields."""
50-
return core_schema.no_info_after_validator_function(cls, handler(str))
50+
return core_schema.no_info_after_validator_function(
51+
cls.validate, core_schema.str_schema()
52+
)
5153

5254
@classmethod
5355
def __get_pydantic_json_schema__(

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build-backend = "poetry.core.masonry.api"
1717

1818
[tool.poetry.dependencies]
1919
python = "^3.9.0"
20-
pydantic = "^2.7.0"
20+
pydantic = { git = "https://github.com/ff137/pydantic.git", branch = "debug-json-schema" }
2121
typing-extensions = "^4.7.0"
2222
inflection = "^0.5.1"
2323

0 commit comments

Comments
 (0)