Skip to content

Commit

Permalink
fix: remove arity validation for provider transforms (#985)
Browse files Browse the repository at this point in the history
* fix: remove arity validation

* chore: add changeset
  • Loading branch information
rgwozdz authored Apr 29, 2024
1 parent f90ddfe commit 463b454
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-meals-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@koopjs/koop-core": patch
---

- remove arity validation for transform function options
4 changes: 2 additions & 2 deletions packages/core/src/data-provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const providerOptionsSchema = Joi.object({
.unknown(true)
.optional(),
routePrefix: Joi.string().optional(),
before: Joi.function().arity(2).optional(),
after: Joi.function().arity(3).optional(),
before: Joi.function().optional(),
after: Joi.function().optional(),
name: Joi.string().optional(),
defaultToOutputRoutes: Joi.boolean().optional(),
}).unknown(true);
Expand Down

0 comments on commit 463b454

Please sign in to comment.