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
Update generic API Create to allow arrays in POST if set on object #4356
Conversation
This is an improvement in general, but it also fixes regression bugs in endpoints which used to accept either objects in the request body or arrays thereof. |
a2be5e1
to
c98bc33
Compare
Looks good to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some very very small comments
2e42b88
to
ca1c03a
Compare
ca1c03a
to
85e5aac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor nit/non-blocking comments
What does this PR (Pull Request) do?
This PR updates the generic API Create function to allow arrays as part of the POST if the struct passed in has it enabled.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR
Additional Information