-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cb2-12275): update packages (#20)
- Loading branch information
1 parent
5556fd6
commit a787a56
Showing
8 changed files
with
13,161 additions
and
28,649 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
/* eslint-disable */ | ||
|
||
import * as Joi from 'joi'; | ||
import Joi from 'joi'; | ||
|
||
export const mcRequestSchema = Joi.array().items({ | ||
vehicleIdentifier: Joi.string().required().max(8), | ||
testDate: Joi.string().required(), | ||
vin: Joi.string().required(), | ||
testResult: Joi.string().required(), | ||
hgvPsvTrailFlag: Joi.string().required(), | ||
testResultId: Joi.string().required(), | ||
}); | ||
export const mcRequestSchema = Joi.array().items( | ||
Joi.object({ | ||
vehicleIdentifier: Joi.string().required().max(8).messages({ | ||
'any.required': '"vehicleIdentifier" is required', | ||
'string.max': '"vehicleIdentifier" must be at most 8 characters long' | ||
}), | ||
testDate: Joi.string().required().messages({ | ||
'any.required': '"testDate" is required' | ||
}), | ||
vin: Joi.string().required().messages({ | ||
'any.required': '"vin" is required' | ||
}), | ||
testResult: Joi.string().required().messages({ | ||
'any.required': '"testResult" is required' | ||
}), | ||
hgvPsvTrailFlag: Joi.string().required().messages({ | ||
'any.required': '"hgvPsvTrailFlag" is required' | ||
}), | ||
testResultId: Joi.string().required().messages({ | ||
'any.required': '"testResultId" is required' | ||
}), | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters