Skip to content

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

Open
@JoaoGFarias

Description

@JoaoGFarias

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions