-
Notifications
You must be signed in to change notification settings - Fork 421
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
id missing in the payload for the endpoint POST /accounts #2982
Comments
Hi, I would like to take a look at this issue. |
Please feel free to go ahead! |
Maybe should we actually remove the |
Hi Natim, I'm very new and struggling to find where this is specified in the code. Any suggestions to point me in the right direction? |
I've been looking at this for a while, and I'm struggling to find how to access the OpenAPI Spec. Any tips is much appreciated. |
You mean for the error message? https://github.com/Kinto/kinto/blob/master/kinto/plugins/accounts/views/__init__.py#L28-L39 It is then used here: https://github.com/Kinto/kinto/blob/master/kinto/plugins/accounts/views/__init__.py#L85 Reading the code I think we don't want to fix this bug actually. Because it is an edge case of the admin privileges. The OpenAPI is build automatically from the resource using the OpenAPI module |
In the response for GET /_api_,
for the endpoint POST /accounts, the ObjectSchema( body) is
Using this body gives the following error,
The "id" field is missing in the body of the endpoint POST /accounts in the OpenAPI Spec.
Correct payload should be,
The text was updated successfully, but these errors were encountered: