Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda