Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

LocalTime can be created in the OpenAPI specification using the format property with the format of HH:mm:ss. Here is an example of creating a LocalTime property in an OpenAPI schema:

properties:
  time:
    type: string
    format: time
    description: The time in the format of HH:mm:ss (local to the application)

In this example, the time property is of type string and has a format of time, which represents a LocalTime. The description provides additional information about the property. The format of HH:mm:ss represents the hours, minutes, and seconds of the LocalTime.