Skip to content

Commit

Permalink
fix(crypto): use anyOf for transactions schema (#2894)
Browse files Browse the repository at this point in the history
  • Loading branch information
spkjp committed Sep 4, 2019
1 parent 8e80340 commit c3aebbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/crypto/src/validation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Validator {
$id: "transactions",
type: "array",
additionalItems: false,
items: { oneOf: [...this.transactionSchemas].map(schema => ({ $ref: `${schema}Signed` })) },
items: { anyOf: [...this.transactionSchemas].map(schema => ({ $ref: `${schema}Signed` })) },
});
this.ajv.addSchema(schemas.block);
}
Expand Down

0 comments on commit c3aebbf

Please sign in to comment.