Skip to content

Commit fd782d2

Browse files
Merge pull request #65 from iolanta-tech/expand-one
model dump options
2 parents 4d4cfad + d9dfd79 commit fd782d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_specification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _test(test_case: TestCase, parse: Callable, expand: Callable) -> None:
8080
test_case.input,
8181
options=ExpandOptions(
8282
extract_all_scripts=test_case.extract_all_scripts,
83-
).model_dump(),
83+
).model_dump(by_alias=True),
8484
)
8585
except YAMLLDError as error:
8686
assert error.code == error_code

yaml_ld/expand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def expand( # noqa: C901, WPS211
4949
try:
5050
return jsonld.expand(
5151
input_=document,
52-
options=options.model_dump(),
52+
options=options.model_dump(by_alias=True),
5353
)
5454
except TypeError as err:
5555
raise MappingKeyError() from err

0 commit comments

Comments
 (0)