You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In my application I am parsing a yaml file and after it has been succesfully parsed, I am doing additional validation checks. For these checks I would like source line to be available so I can give error messages referring to the original source line.
Describe the solution you'd like
I was hoping to be able to use a custom unmarshaller in combination with a wrapper of a Reader that keeps track of source line and position. That way I can add this info to the objects that are parsed from yaml.
In order to be able to do this. I want to decorate the original unmarshaller, but I have no clue on how to invoke the original marshaller from my custom marshaller.
I can imagine that doing this in a naive way would cause recursion: marshaller invokes custom marshaller which invokes marshaller .... However, I think support for decorators as part of the API would be really beneficial.
If it is already possible using the current API then that would also be fine.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In my application I am parsing a yaml file and after it has been succesfully parsed, I am doing additional validation checks. For these checks I would like source line to be available so I can give error messages referring to the original source line.
Describe the solution you'd like
I was hoping to be able to use a custom unmarshaller in combination with a wrapper of a Reader that keeps track of source line and position. That way I can add this info to the objects that are parsed from yaml.
In order to be able to do this. I want to decorate the original unmarshaller, but I have no clue on how to invoke the original marshaller from my custom marshaller.
I can imagine that doing this in a naive way would cause recursion: marshaller invokes custom marshaller which invokes marshaller .... However, I think support for decorators as part of the API would be really beneficial.
If it is already possible using the current API then that would also be fine.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: