-
Notifications
You must be signed in to change notification settings - Fork 919
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
[BUG] device.info Name / Type not camelCase #3241
Comments
This was referenced Sep 27, 2023
Hello, Mr. Xarem |
Indeed:
Device Lines 168 to 170 in 2fab8d5
|
dougm
added a commit
to dougm/govmomi
that referenced
this issue
Sep 27, 2023
PR vmware#3007 added camelCase json tags for generated types BREAKING: This change adds camelCase (lower-case 1st character) json tags for govc types Fixes vmware#3243 Fixes vmware#3242 Fixes vmware#3241
dougm
added a commit
to dougm/govmomi
that referenced
this issue
Sep 27, 2023
PR vmware#3007 added camelCase json tags for generated types BREAKING: This change adds camelCase (lower-case 1st character) json tags for govc types Fixes vmware#3243 Fixes vmware#3242 Fixes vmware#3241
dougm
added a commit
to dougm/govmomi
that referenced
this issue
Sep 27, 2023
PR vmware#3007 added camelCase json tags for generated types BREAKING: This change adds camelCase (lower-case 1st character) json tags for govc types Fixes vmware#3243 Fixes vmware#3242 Fixes vmware#3241
priyanka19-98
pushed a commit
to priyanka19-98/govmomi
that referenced
this issue
Jan 17, 2024
PR vmware#3007 added camelCase json tags for generated types BREAKING: This change adds camelCase (lower-case 1st character) json tags for govc types Fixes vmware#3243 Fixes vmware#3242 Fixes vmware#3241
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In v0.31.0, govmomi made big steps into using camelCase, we're currently updating our application to reflect this. We tried to put our findings in separate issues (#3241, #3242, #3243) because not every issue may be a bug.
We found some exceptions in the API, in
device.info
are still some keys (Name
,Type
) PascalCased.Steps to reproduce
Result
Expected behavior
govc device.info -json -vm test-vm | jq '.devices[10]'
(devices
camelCase)Affected version
v0.31.0
The text was updated successfully, but these errors were encountered: