Hi, relatively new user here. Trying to get to grips with using external libraries within Retool. I have read some other threads on here as well as the help guide within the docs and they don't completely seem to help.
In regards to OnPrem, its hosted within out AWS VPC so I want to say yes, but I haven't set up the instance myself.
Currently trying to import the library in one app through the Scripts and Styles tab. I don't think I have access to the Advanced options but I will speak to the instance owner about that.
In terms of actually checking whether they are usable, am I right is saying its just typically JS, so importing using require etc? I am new to using minified JS so not sure if there is something else to it.
You should be able to use the functions within the library once you have set it up.
Have you checked out: Preloaded JavaScript and Libraries
" You can also pull in libraries from external URLs. For example, you could add papaparse by adding the URL https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.6.0/papaparse.min.js to the Libraries section. Then, you'll have papaparse available inside all your JavaScript queries, {{ }} , etc."
I have checked that link out yes, I suppose there is some confusion from my end whether Ajv is even able to be used - I know libraries that have imports are not supported but I am unsure how to check this.
I have tried to use Ajv both in Javascript queries and the normal query editor with no luck...
@MatthewHole I have never used it and so I cannot answer that question - I was only trying to help you import it into your app... that being said, maybe another question would be to ask is what are you trying to accomplish that the already included libraries cannot do?
@ScottR thats fair enough, no worries with that. I am just trying to validate some user inputted json against a schema before it is submitted and sent to our server over HTTP. I was no aware of the included libraries or where I can find a list. Is there one already given that I can use for this functionality? I am aware of the JSONSchema Form which I am using in other areas so I suppose there must be a JSON Library that can be used somewhere
Unfortunately I don't think they will help me with what I am trying to achieve, thank you for the help. I will try to get the libraries working if I can