giantswarm / personio-go

Personio Client for Go
Apache License 2.0
5 stars 3 forks source link

Unprocessible Entity when providing time offs with a date #3

Closed surdaft closed 1 year ago

surdaft commented 1 year ago

https://github.com/giantswarm/personio-go/blob/ffeb4be5cb48d7a10c02bee8acad21d7f353bceb/v1/personio.go#L446

This line outputs the date for the URL in RFC3339 however the API only accepts YYYY-MM-DD format (2006-01-02) otherwise a 422 error is returned.

lyind commented 1 year ago

Thank you for this bug report and the proposed fix.

Just some minor polishing and that pro forma form and I will merge it. See PR.

lyind commented 1 year ago

The PR resolves this issue, closing.

@surdaft Thank you for your contribution and patience!