Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for decoding string/date-time to time.Time #3

Merged
merged 1 commit into from
May 19, 2022

Conversation

michel-laterman
Copy link

@michel-laterman michel-laterman commented May 12, 2022

Support decoding string/date-time in the json schema to a time.Time in
golang. This is done by adding a new internal attribute that will track
additional (golang) imports that a struct needs to import for code
generation.

Support decoding string/date-time in the json schema to a time.Time in
golang. This is done by adding a new internal attribute that will track
additional (golang) imports that a struct needs to import for code
generation.
Copy link

@ph ph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this lgtm but @aleksmaus you know more the code than me.
Also we have forked that repository, should we try to push our changes upstream?

@aleksmaus
Copy link
Member

@ph we hacked a bunch of customizations together there for our purposes, some as far as I remember are incompatible with the original generator and some stuff we no longer use. need to see what would it take to clean it up and if that would be compatible with upstream at this point.

Copy link
Member

@aleksmaus aleksmaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thank you!

@ph
Copy link

ph commented May 19, 2022

Thanks for the details, I don't see a great rush to push it upstream.

@ph ph merged commit c708d18 into elastic:master May 19, 2022
@michel-laterman michel-laterman deleted the time-support branch November 15, 2023 19:17
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.

3 participants