Skip to content

Commit 3e5d9ee

Browse files
committed
URI format
- removed ajv-formats and allows any value for uri format Signed-off-by: JBBianchi <[email protected]>
1 parent e921b4b commit 3e5d9ee

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed

package-lock.json

Lines changed: 0 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
},
3434
"dependencies": {
3535
"ajv": "^8.1.0",
36-
"ajv-formats": "^2.1.0",
3736
"js-yaml": "^4.1.0"
3837
},
3938
"devDependencies": {

src/lib/validators.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import Ajv, { ValidateFunction } from 'ajv';
19-
import addFormats from 'ajv-formats';
19+
//import addFormats from 'ajv-formats';
2020
import commonSchema from './schema/common.json';
2121
import eventsChema from './schema/events.json';
2222
import functionsSchema from './schema/functions.json';
@@ -27,7 +27,8 @@ import { validatorsPaths } from './validation/validators-paths';
2727
const schemas: any[] = [commonSchema, eventsChema, functionsSchema, retriesSchema, workflowSchema];
2828
const strict: boolean = false;
2929
const ajv = new Ajv({ schemas, strict });
30-
addFormats(ajv, ['uri']);
30+
//addFormats(ajv, ['uri']);
31+
ajv.addFormat('uri', (uri: string): boolean => true);
3132
/**
3233
* A Map of validation functions, where the key is the name of the schema to validate with
3334
*/

0 commit comments

Comments
 (0)