Skip to content

Commit

Permalink
pass the allowUnionTypes: true option to Ajv for JSON Schema parsing (
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen authored Jan 25, 2024
1 parent 8f6e01e commit 03717e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/compile-validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const schemas = {
RecordsWriteSignaturePayload
};

const ajv = new Ajv({ code: { source: true, esm: true } });
const ajv = new Ajv({ code: { source: true, esm: true }, allowUnionTypes: true });

for (const schemaName in schemas) {
ajv.addSchema(schemas[schemaName], schemaName);
Expand Down

0 comments on commit 03717e2

Please sign in to comment.