Skip to content

Commit

Permalink
fix: relax validation rules for \major\ in beacons
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanHafez committed Aug 13, 2023
1 parent e20b1ab commit ba3bf6e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/schemas/Beacon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ export interface Beacon {
}

export const Beacon = Joi.object<Beacon>().keys({
major: Joi.number()
.integer()
.positive()
.max(65535)
.greater(Joi.ref("minor")),
major: Joi.number().integer().min(0).max(65535),
minor: Joi.number().integer().min(0).max(65535),
proximityUUID: Joi.string().required(),
relevantText: Joi.string(),
Expand Down

0 comments on commit ba3bf6e

Please sign in to comment.