Describe the bug
The path property of the error is not handled correctly when writing custom functions. In case the function also provides some value for the path besides the message, it remains empty after calling new Spectral(resolver).run(openApi).
Describe the bug The
path
property of the error is not handled correctly when writing custom functions. In case the function also provides some value for thepath
besides themessage
, it remains empty after callingnew Spectral(resolver).run(openApi)
.To Reproduce
Given a custom most simplified function:
The linting result will be:
Expected behavior The expected result would also contain the path provided by the custom function as follows:
Environment (remove any that are not applicable):