Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Apr 26, 2024
1 parent 1ec56b2 commit 6335659
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
60 changes: 32 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pydid/did_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def __get_pydantic_core_schema__(
cls, source_type: Any, handler: GetCoreSchemaHandler
) -> CoreSchema:
"""Update schema fields."""
return core_schema.no_info_after_validator_function(cls, handler(str))
return core_schema.no_info_after_validator_function(
cls.validate, core_schema.str_schema()
)

@classmethod
def __get_pydantic_json_schema__(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build-backend = "poetry.core.masonry.api"

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

Expand Down

0 comments on commit 6335659

Please sign in to comment.