https://spec.openapis.org/registry/format/duration There are libraries such as https://github.com/peterhellberg/duration that support parsing RFC3339 durations, however it does not support marshaling `time.Duration` to a `string`.