-
Notifications
You must be signed in to change notification settings - Fork 51
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
v1_daemon_set_convertToJSON is returning NULL cJSON object #193
Comments
I think this is a defect that has never been raised before. |
If you want to fix this issue, please note that the code is generated by |
Thank you for pointing me out. I tried to had a look. As far as I understand the problem is when a field is an int and also required, indeed the same issue is present for But I have zero experience with openapi-generator and I'm struggling with the syntax there (for example I don't understand the difference between |
Maybe this is enough to fix the issue? (L333 - L344)
|
Your fix is correct. Now it can return a valid cJSON object. And for the non-required property, we'd better to add the code too:
|
Hello @ityuhui, how we should proceed with this issue? |
I'll look at the reviewer's comments and talk with him. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Hello @ityuhui, I saw you implemented the |
This task is on the top of my list. Maybe in a month I'll start. |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Hello,
I've debugged this and this function is returning null while parsing the status. I have a simple Daemonset with this status:
The conversion is failing here: https://github.com/kubernetes-client/c/blob/master/kubernetes/model/v1_daemon_set_status.c#L113
Is there any reason why this code must check the value of the int and fail if it's zero? I don't understand the logic here.
Best,
hirishh
The text was updated successfully, but these errors were encountered: