Open Jakob3xD opened 3 months ago
@DarshitChanpura do you have some time to check this one?
Yes, I can take a look. From what I understand, static,hidden,reserved
are reserved for admin (and super-admin) users only. I will take a detailed look and update here.
What is the bug?
The OpenSearch.openapi.json currently contains some issues related to
/_plugins/_security/api
and the component schemes they reference. Most of theGET
requests like for roles, internalusers, actiongroups and tenants return the keyshidden
,reserved
andstatic
which is represented in the schemes. The same schemes are used for thePUT
request but those keys are not valid forPUT
requests. In addition the internalusers PUT component scheme misses thepassword
field.How can one reproduce the bug?
Returns:
What is the expected behavior?
I would expect an extra component scheme for the Put Requests.
Do you have any screenshots?
PUT Role references the scheme Role: https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L14226
Scheme Role: https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L33784-L33818
GET role references RolesMap https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L14164
Scheme RolesMap references Role: https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L33863-L33868