We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be very useful if construct callback of a custom type also receives filename as third parameter, for example:
const jsSchema = new yaml.Type("!js", { resolve: (data) => data != undefined && data!=null, construct: (data, tag, filename) => { ... }, represent: (content) => content.toString() });
The following line seems to be the place to make the change (pass state.filename as third argument to type.construct):
js-yaml/lib/loader.js
Line 1531 in 49baadd
Please let me know If that's an acceptable change request. If so, I'll be more than happy to send a PR.
Cheers!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be very useful if construct callback of a custom type also receives filename as third parameter, for example:
The following line seems to be the place to make the change (pass state.filename as third argument to type.construct):
js-yaml/lib/loader.js
Line 1531 in 49baadd
Please let me know If that's an acceptable change request. If so, I'll be more than happy to send a PR.
Cheers!
The text was updated successfully, but these errors were encountered: