Skip to content
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

Enum Setter and Getter behaviour is incorrect for invalid choices #274

Open
Rangababu-R opened this issue Dec 10, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working ux Impacts UX

Comments

@Rangababu-R
Copy link
Contributor

Version information
0.1.31

Describe the bug
snappi: enum setter accepts any value and the same can be retrieved in getter method.
gosnappi: Any invalid value can will be set to unspecified or default

To Reproduce

python:
c = sanity.Api().prefix_config()
c.response = "abc"
c.response returns abc
go:
c := openapiart.NewPrefixConfig()
c.SetResponse("abc")
c.Response() returns "status_200" as the default is status_200

Expected behavior
shall append to the validation errors, in setter

@Rangababu-R Rangababu-R self-assigned this Dec 10, 2021
@Rangababu-R Rangababu-R mentioned this issue Dec 15, 2021
@ashutshkumr ashutshkumr added ux Impacts UX bug Something isn't working and removed py ux sdk gen labels Jul 18, 2023
@ashutshkumr ashutshkumr moved this to Backlog in OTG Tools Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ux Impacts UX
Projects
Status: Backlog
2 participants