Skip to content
New issue

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

Detect invalid VCF configurations #165

Open
matsn0w opened this issue Nov 19, 2023 · 2 comments
Open

Detect invalid VCF configurations #165

matsn0w opened this issue Nov 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@matsn0w
Copy link
Owner

matsn0w commented Nov 19, 2023

Is your feature request related to a problem? Please describe.
We should detect if the user has provided an invalid XML file or a VCF for a different kind of ELS resource.

Describe the solution you'd like
A validator in the VCF Configurator (upload to validate) and a check when the file is parsed on the server.

Additional context
Maybe create an XSD for the XML structure?

@matsn0w matsn0w added the enhancement New feature or request label Nov 19, 2023
@JustinRijsdijk
Copy link
Collaborator

Not: XSD formatting in lua is not really a thing(?) see: https://stackoverflow.com/questions/8033876/lua-xml-library-with-xml-schema-validation

A solution could be Utilizing the power of Javascript, and use the built in Node server on th FX server to validate the XML's.
This could be done either by exporting a function within the script, or events. But imho, events shouldn't be used for these kind of things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants