fixing docs
This commit is contained in:
parent
5bc74b3514
commit
410ff3cbc4
|
@ -169,10 +169,10 @@ The app exposes the following [gRPC](https://grpc.io/) services :
|
|||
- driver (boolean, optional): if the ad is a driver ad
|
||||
- passenger (boolean, optional): if the ad is a passenger ad
|
||||
- frequency: `PUNCTUAL` or `RECURRENT`
|
||||
- departureDateTime (required if punctual): departureDateTime date and hour/minute for a punctual ad
|
||||
- departureDateTime (required if punctual): departure date and hour/minute for a punctual ad
|
||||
- fromDate (required if recurrent): start date for recurrent ad
|
||||
- toDate (required if recurrent): end date for recurrent ad
|
||||
- schedule (required if recurrent): an object with the departureDateTime time for each carpooled day in the week
|
||||
- schedule (required if recurrent): an object with the departure time for each carpooled day in the week
|
||||
- marginDurations (optional): an object with the margin duration (in seconds) for each carpooled day in the week, eg:
|
||||
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ export const IsPunctualOrRecurrent = (
|
|||
isPunctualOrRecurrent(args),
|
||||
defaultMessage: buildMessage(
|
||||
() =>
|
||||
`the departureDateTime, from date, to date and schedule must be properly set on recurrent or punctual ad`,
|
||||
`the departure Date and time , from date, to date and schedule must be properly set on recurrent or punctual ad`,
|
||||
validationOptions,
|
||||
),
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Frequency } from '../../../domain/types/frequency.enum';
|
|||
describe('punctual or recurrent validators', () => {
|
||||
describe('punctual case ', () => {
|
||||
describe('valid cases', () => {
|
||||
it('should validate with valid departureDateTime and empty schedule ', () => {
|
||||
it('should validate with valid departure DateTime and empty schedule ', () => {
|
||||
expect(
|
||||
isPunctualOrRecurrent({
|
||||
value: undefined,
|
||||
|
|
Loading…
Reference in New Issue