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

Migrate to JSON3 #25

Merged
merged 3 commits into from
Aug 12, 2022
Merged

Migrate to JSON3 #25

merged 3 commits into from
Aug 12, 2022

Conversation

christopher-dG
Copy link
Member

@christopher-dG christopher-dG commented May 14, 2021

Closes #9, ref #22

I'm pretty sure that the weirdness of dateformats for GitLab is isolated to commits; I went through all the GitLab API docs and I only found the nonstandard format there. So I've not allowed for any user configuration of the formats, but we can change them on a per-type level and a per-field level too.

Due to some limitations in JSON3/StructTypes, I've also gotten rid of the _extras field on all types, and any keys that come from the API that are not present in the struct will throw an error. I definitely don't want that, so I'm looking at a couple of options:

@@ -18,51 +16,46 @@ end
Create a type that can be parsed from JSON.
"""
macro json(def::Expr)
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind adding in some comments here? Personally I haven't worked too much with macros and expressions, so a lot of this goes over my head.

Would probably make it a bit easier to maintain in the future too!

@fchorney
Copy link
Collaborator

I assume you're waiting for JuliaData/StructTypes.jl#52 to be approved/etc. Is there somebody we can ping to get that going? This would be great to get merged in soon

@aviks
Copy link
Member

aviks commented Dec 21, 2021

Anything, in particular holding this up?

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.

GitLab DateTime format change
5 participants