schema-validation
Here are 73 public repositories matching this topic...
default
const V = require('fastest-validator');
const v = new V();
const schema = {
tuple: {
type: 'tuple',
empty: false,
items: [{ type: 'string', default: '1' }],
},
};
const data = { tuple: [] };
console.log(v.validate(data, schema));
console.log(data);[
{
type: 'tupleEmpty',
message: "The 'tuple' field must not be an empty
-
Updated
Aug 20, 2020 - TypeScript
-
Updated
Sep 9, 2020 - Ruby
-
Updated
Feb 14, 2020 - Java
-
Updated
Sep 7, 2020 - TypeScript
-
Updated
Apr 29, 2020 - HTML
In our codebase I observed that the generated files are often recompiled without explicitly cleaning them or changing the schema. This isn't a big deal for small schemas but in our case it's over 400 files that are being recompiled and takes several seconds.
I don't have a repro-case yet but it should be fairly straight forward. I can imagine using one of the test/example projects and checking
-
Updated
Jul 16, 2020 - JavaScript
-
Updated
Jul 16, 2020 - JavaScript
-
Updated
Sep 27, 2018 - JavaScript
-
Updated
Mar 26, 2020 - Java
-
Updated
Sep 9, 2020 - Elixir
-
Updated
Nov 30, 2015 - HTML
-
Updated
Aug 2, 2020 - JavaScript
-
Updated
Sep 3, 2020 - JavaScript
-
Updated
Jul 17, 2020 - JavaScript
-
Updated
Oct 28, 2019 - PHP
-
Updated
Jun 5, 2020
-
Updated
Jul 2, 2020 - Shell
-
Updated
Jul 16, 2019 - Python
-
Updated
Sep 9, 2020 - TypeScript
-
Updated
Jul 23, 2020 - TypeScript
-
Updated
Sep 6, 2020 - JavaScript
-
Updated
Mar 13, 2019 - TypeScript
-
Updated
Feb 27, 2014 - Ruby
-
Updated
Jul 18, 2020 - JavaScript
Improve this page
Add a description, image, and links to the schema-validation topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the schema-validation topic, visit your repo's landing page and select "manage topics."


There's support for validating promise types, but I don't see a way to create async validators.
What I'm thinking of is something like this:
Where
idExistsAsyncis some function that asynchronously checks some backen