skip to Main Content

Amazon web services – Why API Gateway allows invalid dates

In AWS API Gateway, I have a model like this: { "required" : [ "validUntil" ], "type" : "object", "properties" : { "validUntil" : { "$ref":"https://apigateway.amazonaws.com/restapis/xxxyyyzzz/models/Timestamp" }, "deadline" : { "$ref":"https://apigateway.amazonaws.com/restapis/xxxyyyzzz/models/Date" } } } When I pass a request with…

VIEW QUESTION

Date validation with another fields in controller in Laravel

Here is my validation code in the controller $eldate = Carbon::now()->addDay(4)->format('Y-m-d'); $validatedData = $this->validate($request, [ 'ldate' => 'required|date|unique:leaves,ldate,NULL,employee,employee,'.auth()->id(), 'ldate2' => 'nullable|date|after_or_equal:ldate', 'type' => 'required' ]); In this validation code I have to add one more condition for date1 If type…

VIEW QUESTION
Back To Top
Search