mock-server / mockserver

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).
http://mock-server.com
Apache License 2.0
4.62k stars 1.08k forks source link

Delay timeUnit is defined as a Java's TimeUnit (an enum), but API accepts any string #1908

Open JoaoGFarias opened 2 months ago

JoaoGFarias commented 2 months ago

Describe the issue The Delay timeUnit must the value valid for the Java's standard TimeUnit (code), but the API accepts any string.

image

Causing MockServer to create a delay without a TimeUnit.

image

MockServer version 5.15.0

Expected behaviour MockServer should reject the request without a valid TimeUnit