Skip to content

Does the date format not support the nanosecond format? #2701

@Azunyan1111

Description

@Azunyan1111

Does the date format not support the nanosecond format?

In the Go language, the nanosecond format exists in the standard package.

There is no description in json scheme and RFC3339.
So OpenAPI will never support nanoseconds?

https://datatracker.ietf.org/doc/html/rfc3339#section-5.6
https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.7.3.1

https://pkg.go.dev/time#RFC3339Nano

RFC3339     = "2006-01-02T15:04:05Z07:00"
RFC3339Nano = "2006-01-02T15:04:05.999999999Z07:00"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions