oav icon indicating copy to clipboard operation
oav copied to clipboard

loosen validation for duration check

Open tadelesh opened this issue 3 years ago • 1 comments

For some swagger examples, durations are not case sensitive. Loosen validation regex could make them compatible. But if it should be tightly aligned with spec, just correct me.

tadelesh avatar Oct 18 '22 07:10 tadelesh

@tadelesh, it doesn't recognize the lowercase in durations format.

Some libraries loosen the condition to lowercase. But if you think it should be fixed with example, I'm OK with that. Besides, will lint rule check the example value of duration?

tadelesh avatar Oct 20 '22 12:10 tadelesh

@tadelesh, it doesn't recognize the lowercase in durations format.

Some libraries loosen the condition to lowercase. But if you think it should be fixed with example, I'm OK with that. Besides, will lint rule check the example value of duration?

No, it just validates the format instead of the value correctness.

raych1 avatar Nov 02 '22 03:11 raych1