-
Notifications
You must be signed in to change notification settings - Fork 168
Primary key for nested models #211
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
Comments
Hi! I haven’t heard back since last time — is it okay if I submit a PR for this? I’ve followed the “Development” section of the README, and things mostly work with a few adjustments. However, running make build (particularly the goimports step) results in a number of source code changes, mostly related to formatting and indentation, even for the current NetBox version (4.2.2). Upgrading to 4.2.9 (the latest in the 4.2 branch) introduces even more changes and also requires updates to the tests/*.go files. I’m happy to fix the existing tests if needed. What are your thoughts on this? |
Hey sorry I'm slammed with work. I just did PR #212, would that work for you ? |
Released in tag v4.3.0 |
No worries, and thanks for your reply. I'm getting the following error when running: res, status, err := c.VirtualizationAPI.VirtualizationVirtualMachinesList(ctx).Limit(1).Execute() The error is: I believe this is due to the introduction of the type BriefDeviceRole struct {
...
Depth int32 `json:"_depth"`
} I guess it is here: I tested the 4.3.0 client against a NetBox 4.3.0 instance, and it works fine. |
Hello,
I think I am not the only one who finds issue mentioned in netbox-community/netbox#18451 pretty annoying and makes api client for creating resources in netbox rather unstable. Now when it is fixed staring from v4.2.5 probably it is time to upgrade?
See related issue here: #197
Thank you.
The text was updated successfully, but these errors were encountered: