Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
Can you save Ajv validating function to a file?

I'm working on a web app and use Ajv to validate my api responses.
For both adding the schema and compiling it to a validation function, the Ajv guide describes doing it at startup or on demand (when making the api calls). The tradoff here is faster startup with slower api calls or faster api calls with slower startup.

Since my schema's only change when updating the api, it makes sense to me to both add and compile the schema to a validation function in the build process insead of at runtime. The guide also states the validation function can be used independently from an Ajv instance.

So my question is, is it possible to save (write to file) the validation function?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!