Skip to content

Commit

Permalink
fix: change dependency input from object to array
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenreijs authored and RobinBetty committed Sep 29, 2022
1 parent fb5a7c2 commit a44126c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validations/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const schema: ObjectSchema = Joi.object({
type: Joi.string().required().custom(reservedTypes),
allowedTypes: Joi.array().items(Joi.string()).required(),
orientation: Joi.string().required(),
dependencies: Joi.object().pattern(
/.*/,
dependencies: Joi.array().items(
Joi.object({
label: Joi.string().required(),
package: Joi.string()
.pattern(/^[a-z]+:[^~)('!*@]+(@[0-9.\-a-z]+)$/)
.required(),
Expand Down

0 comments on commit a44126c

Please sign in to comment.