LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Be able to set your own yaml parser for your plugin

Open LumiFae opened this issue 1 year ago • 3 comments

Goal Description

I have a union type which would be really useful to have working in the yaml parser for LabAPI. Only issue is right now though, is that I:

  1. Can't add the type converter directly to the parser
  2. Don't want to interfere with other plugins on the server if I patch or use reflection.

So it would be quite useful to be able to set your own parsers (ig this could be set during the LoadConfig method or something) and would allow you to make a custom parser that would work how you want it to, and without causing issues with other plugins.

Thanks for listening to my ted talk.

Notes

No response

LumiFae avatar Jul 15 '25 20:07 LumiFae

Rather than setting the parser during being loaded, why not make it a virtual property of the Plugin? (Iiirc parsers are actual instances of an object)

Someone-193 avatar Jul 16 '25 22:07 Someone-193

Thank you for your suggestion! We've logged this issue in our internal git system for further review and tracking. Please note that this doesn't guarantee acceptance or implementation at this stage. If we need any additional information or clarification, we'll be sure to reach out to you.

Jesus-QC avatar Oct 14 '25 09:10 Jesus-QC

We've reopened this suggestion to prevent confusion and duplicate posts. As stated before, the issue has been added to our internal tracker, but that does not guarantee acceptance nor implementation.

Axwabo avatar Apr 27 '26 18:04 Axwabo