Skip to content

Duration format #457

@WillAbides

Description

@WillAbides

version: v0.20.0

String fields with format: duration are generated as time.Duration. time.Duration marshals to an integer (nanoseconds) instead of a string.

jsonschema 2020-12 defines the duration format as an ISO 8601 duration string.

I see this repo is already parsing duration examples correctly using github.com/sosodev/duration, but it still needs to generate json marshalers and unmarshalers that do the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions