Skip to content

Commit

Permalink
feat: fix optional validations in units
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jan 12, 2022
1 parent 8eafac6 commit 05a690f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/validations/units.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { transformSerialNumberBlock } from '../utils/helpers';

const unitsBaseSchema = {
countryJuridictionOfOwner: Joi.string().required(),
inCountryJuridictionOfOwner: Joi.string().required(),
inCountryJuridictionOfOwner: Joi.string().optional(),
// must be in the form ABC123-XYZ456
serialNumberBlock: Joi.string()
.regex(/[.*\D]+[0-9]+[-][.*\D]+[0-9]+$/)
Expand All @@ -26,10 +26,10 @@ const unitsBaseSchema = {
unitStatus: Joi.string().valid('Held', 'For Sale', 'Retired').required(),
unitTransactionType: Joi.string().optional(),
unitStatusReason: Joi.string().optional(),
tokenIssuanceHash: Joi.string().required(),
tokenIssuanceHash: Joi.string().optional(),
marketplaceIdentifier: Joi.string().optional(),
unitsIssuanceLocation: Joi.string().optional(),
unitRegistryLink: Joi.string().optional(),
unitsIssuanceLocation: Joi.string().required(),
unitRegistryLink: Joi.string().required(),
unitMarketplaceLink: Joi.string().optional(),
correspondingAdjustmentDeclaration: Joi.string()
.valid('Commited', 'Not Required', 'Unknown')
Expand Down

0 comments on commit 05a690f

Please sign in to comment.