We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40750a5 commit bc84952Copy full SHA for bc84952
layer/nrlf/core/errors.py
@@ -11,14 +11,14 @@
11
12
def diag_for_error(error: ErrorDetails) -> str:
13
if error["loc"]:
14
- loc_string = ".".join(each for each in error["loc"])
+ loc_string = ".".join(str(each) for each in error["loc"])
15
return f"{loc_string}: {error['msg']}"
16
else:
17
return f"root: {error['msg']}"
18
19
20
def expression_for_error(error: ErrorDetails) -> Optional[str]:
21
- return str(".".join(each for each in error["loc"]) if error["loc"] else "root")
+ return str(".".join(str(each) for each in error["loc"]) if error["loc"] else "root")
22
23
24
class OperationOutcomeError(Exception):
0 commit comments