Skip to content

Commit

Permalink
fix: update capture age schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpoke authored Sep 22, 2022
1 parent cefdf0b commit 438ffef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handlers/captureHandler/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const capturePostSchema = Joi.object({
species_id_int: Joi.number().integer().default(null), // to support legacy API call, until we can consolidate the species systems
organization_id: Joi.number().integer().default(null), // to support legacy API call
morphology: Joi.string().default(null),
age: Joi.string().allow('over_two_years', 'new_tree', null),
age: Joi.string().valid('over_two_years', 'new_tree', null),
capture_approval_tag: Joi.string().default(null),
captured_at: Joi.date().iso().required(),
attributes: Joi.array()
Expand Down

0 comments on commit 438ffef

Please sign in to comment.