We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the tags controller fails to properly handle a new tag with attached notes value.
notes
To replicate: POST /tags
POST
/tags
Body:
{ "text": "test tag", "isTaxanomic": true, "typeOfTag": "common_species", "notes": { "test": 42, "value": "testing" } }
On request, the following error is given:
The text was updated successfully, but these errors were encountered:
You didn't "break" it. The notes parameter just needs to be added to the list of allowed parameters.
This line: https://github.com/QutEcoacoustics/baw-server/blob/master/app/controllers/tags_controller.rb#L72
Actually, it seems like notes is already permitted. Perhaps it is because it's an object instead of a string?
You can read more about strong params from here: https://edgeguides.rubyonrails.org/action_controller_overview.html#strong-parameters
Sorry, something went wrong.
Allcharles
Successfully merging a pull request may close this issue.
Currently the tags controller fails to properly handle a new tag with attached
notes
value.To replicate:
POST
/tags
Body:
On request, the following error is given:
The text was updated successfully, but these errors were encountered: