-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add nl.basjes/yauaa_context/jsonschema/2-0-0 #1426
base: master
Are you sure you want to change the base?
Conversation
e4cca45
to
718fe43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only doubt is whether 32
is long enough to future-proof the new fields.
In #1216 we got bored of forever bumping max lengths, whenever the yauaa library changed, or whenever a new user agent got invented. So we deliberately bumped all max lengths to 128 or more, to better future-proof the schema.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from my point of view.
@oguzhanunlu please can you remind me why this is 2-0-0, not 1-0-5? I'm sure you're probably right, but I've forgotten the reason.
Even better... you could add the explanation to the PR description, so we have a long term reference of why it is 2-0-0.
How urgently does this need to be merged? Presumably you can you use the dev registry while working on the feature in Enrich?
Thanks @istreeter ! I just updated PR description with a short note on why it is |
This is not the criteria for a model bump. We often add new extra fields to iglu central schemas, and we do it as an addition (e.g. Now for this PR.... you might be correct it should be a |
thanks @istreeter ! my bad, I was asking the wrong question. The blog post asks
Asking the same question. Since previous enum possibilites are always string with length <128, it looks like new schema can validate all historical data. So it indicates an addition as well. However I'm not sure if type conversion could break some of the loaders, I need to check them. |
This PR upgrades
yauaa_context
schema to2-0-0
by converting enums to strings with a future-proof maxLength(128). We don’t have control on those enums and any new version of yauaa lib can add and remove items.Why bump to
2-0-0
?coming soon
ref: PDP-1090