Skip to content

change error message when failed parsing date-time in deepObject#919

Merged
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
ikorihn:feature/fix-parse-datetime-error-message
Jan 18, 2023
Merged

change error message when failed parsing date-time in deepObject#919
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
ikorihn:feature/fix-parse-datetime-error-message

Conversation

@ikorihn
Copy link
Copy Markdown
Contributor

@ikorihn ikorihn commented Jan 8, 2023

Fixed typo and change message same as here:
https://github.com/deepmap/oapi-codegen/blob/ab90f1927bc5ec3e29af216d4298fbb4780ae36d/pkg/runtime/bindstring.go#L125

Before:
error parsing tim as RFC3339 or 2006-01-02 time: parsing time "2020-11-22T12:34:56": extra text: "T12:34:56"

After:
error parsing '2020-11-22T12:34:56' as RFC3339 or 2006-01-02 time: parsing time "2020-11-22T12:34:56": extra text: "T12:34:56"

@deepmap-marcinr deepmap-marcinr merged commit f4cf8f9 into oapi-codegen:master Jan 18, 2023
@ikorihn ikorihn deleted the feature/fix-parse-datetime-error-message branch January 18, 2023 02:33
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
danicc097 pushed a commit to danicc097/oapi-codegen that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants