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

[Index templates] Simulate API does not return mappings when is empty #60968

Open
sebelga opened this issue Aug 11, 2020 · 1 comment
Open

[Index templates] Simulate API does not return mappings when is empty #60968

sebelga opened this issue Aug 11, 2020 · 1 comment
Assignees
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team

Comments

@sebelga
Copy link
Contributor

sebelga commented Aug 11, 2020

Currently, when we execute the _index_template/_simulate API without providing anything, we get back empty objects for "settings" and "aliases" but not for "mappings".

It would be better and more consistent to also return an empty object for "mappings" inside the "template".

// Current response
{
  "template": {
    "settings": {},
    "aliases": {}
  },
  "overlapping": []
}
// Expected response
{
  "template": {
    "mappings": {},
    "settings": {},
    "aliases": {}
  },
  "overlapping": []
}
@sebelga sebelga added >bug needs:triage Requires assignment of a team area label labels Aug 11, 2020
@dakrone dakrone added the :Data Management/Indices APIs APIs to create and manage indices and templates label Aug 11, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Aug 11, 2020
@dakrone dakrone removed the needs:triage Requires assignment of a team area label label Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

3 participants