kuzzleio / kuzzle

Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT -
https://kuzzle.io
Apache License 2.0
1.43k stars 123 forks source link

Suggestion : Add strict mapping to users. #1347

Closed ScreamZ closed 5 years ago

ScreamZ commented 5 years ago

As suggested below, this could be nice to add strict mapping to users collection.

Screenshot 2019-07-10 at 10 48 43

Internal slack thread link https://kaliop.slack.com/archives/C1W3P0UKC/p1562680185067700

Aschen commented 5 years ago

Hi @ScreamZ ! It's a good idea, I added the feature to our product workshop, we will discuss it soon :)

Aschen commented 5 years ago

I just tested this and it's already working: curl -X PUT -H "Content-Type: application/json" -d '{"dynamic": "strict", "properties": { "name": {"type": "keyword"} } }' http://kuzzle:7512/users/_mapping

However you cannot see it when you use security:getUserMapping but changing the API return would introduce a breaking change so it's will be for Kuzzle v2 only