Skip to content

Commit

Permalink
fixes for search schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurvir committed Apr 7, 2024
1 parent 442a588 commit 8e4bc74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions schemas/jsons/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -80,7 +81,8 @@ export default {
description: "Time of the stop",
format: 'date-time'
}
}
},
required: ['timestamp']
},
type:{
type: "string",
Expand Down

0 comments on commit 8e4bc74

Please sign in to comment.