RFC3339 states that the UTC offset needs to have 2 digit hour and minute offset.
Previous regexp allows for 1+ digits so "+1:1" and "-0123456789:9876543210" would be accepted.
Summary
While using Openapi Plugin I noticed that it doesn't accept ISO timestamps. While this is fine, as Openapi spec states that the format be RFC3339, I noticed that the regexp checking the dates is too lax.
Motivation
I see no advantage in accepting wrong time offsets like 123:567.
RFC3339 states that the UTC offset needs to have 2 digit hour and minute offset.
Previous regexp allows for 1+ digits so "+1:1" and "-0123456789:9876543210" would be accepted.
Summary
While using Openapi Plugin I noticed that it doesn't accept ISO timestamps. While this is fine, as Openapi spec states that the format be RFC3339, I noticed that the regexp checking the dates is too lax.
Motivation
I see no advantage in accepting wrong time offsets like 123:567.
References
Discussion on IRC. Don't know how to link to it.
Spec: OpenAPI RFC: RFC3339 See: