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

Client validation for mandatory fields don't work as expected #8

Closed
ashutshkumr opened this issue Jan 14, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ashutshkumr
Copy link
Contributor

Per https://github.com/open-traffic-generator/models/blob/master/port/port.yaml, name is a mandatory field and hence cannot be null. But following snippet works.

import snappi

api = snappi.api.Api()
config = api.config()
config.ports.port(location='localhost;2;1')
print(config.serialize())

Output:

{
  "ports": [
    {
      "location": "localhost;2;1",
      "name": null
    }
  ]
}
@ashutshkumr ashutshkumr added the bug Something isn't working label Jan 14, 2021
@ashutshkumr ashutshkumr added this to Backlog in Stabilize via automation Jan 14, 2021
@ashutshkumr ashutshkumr removed this from Backlog in Stabilize Apr 6, 2021
@Rangababu-R
Copy link
Contributor

fixed and available in version 0.4.38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants