Ask Your Question
3

How can `LocalTime` be created using the OpenAPI specification?

asked 2022-04-30 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-07 13:00:00 +0000

devzero gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-04-30 11:00:00 +0000

Seen: 15 times

Last updated: Feb 07 '22