-
Notifications
You must be signed in to change notification settings - Fork 133
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
Problem with inline object within additionalProperties #1591
Comments
👍 this was a conscious decision at the time to not support arbitrary types for I think this could be fairly straightforward to add, at least in the case of a Is this something you'd be interested and available to add? I can help with guidance in the Matrix channel if you'd like, and I can cut a release as soon as the tests pass. The nice thing is we don't have to worry about backwards compatibility here, since this is entirely new. |
Actually, I just saw that you're already doing some heavy lifting over there. I'm curious about the level of customization that they needed that wasn't already available via the sbt plugin, but that's I guess out of the scope for this ticket. The module system in recent releases should give them full control to override absolutely every part of code generation with relatively little headache, so if there's some need there then I can help as well I can look at adding support for this within the next two weeks, if that fits your timeline |
It's very likely that Also, I think in CRDs there are no The
(This page describes how to do it by hand: https://coralogix.github.io/zio-k8s/docs/crd/crd_custom) |
That makes a lot of sense, thanks for the explanation! I wish there were a more pleasant workflow than copy paste, as I think you'll find there have been some significant changes ( Once I've got a spare moment I'll see if I can get that additional properties stuff working. From your perspective, is my proposal of an additional parameter with |
Sorry for the delay on getting back to this, hopefully it hasn't caused too much trouble. I've just opened a PR that at least satisfies the example spec from this issue, though with one caveat -- If that's required I can prioritize another pass, but if not then I've at least left enough context that it should be possible to make moves in that direction when things calm down a bit more for me, or if somebody is feeling this pain particularly significantly. |
Is there any update about this or any chance to merge? |
Unfortunately no, I've got a partial branch but I haven't had the time to finish it, I'm sorry to block the zio work. |
The following example (taken from the schema of the CRD https://github.com/argoproj/argo-cd/blob/41f54aa556f3ffb3fa4cf93d784fb7d30c15041c/manifests/crds/appproject-crd.yaml):
generates this code:
in which
Status.JwtTokensByRole
is missing.The text was updated successfully, but these errors were encountered: