diff --git a/config/registry.json b/config/registry.json index 2d13aa7..800e82c 100644 --- a/config/registry.json +++ b/config/registry.json @@ -33,7 +33,8 @@ "rules": [ "search must have two stops for this domain.", "Supported stop.type : check-in, check-out", - "fulfillment stops should not have location for this domain." + "fulfillment stops should not have location for this domain.", + "fulfillment.stops[i].time should be an object and contain timestamp" ] }, "tourism": { diff --git a/schemas/jsons/search.js b/schemas/jsons/search.js index be4e649..68e5ec1 100644 --- a/schemas/jsons/search.js +++ b/schemas/jsons/search.js @@ -70,7 +70,8 @@ export default { description: "Describes a GPS coordinate", pattern: '^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$' } - } + }, + required: ['gps'] }, time: { type: "object", @@ -80,7 +81,8 @@ export default { description: "Time of the stop", format: 'date-time' } - } + }, + required: ['timestamp'] }, type:{ type: "string",