stellio-hub / stellio-context-broker

Stellio is an NGSI-LD compatible context broker
https://stellio.readthedocs.io
Apache License 2.0
27 stars 10 forks source link

LanguageProperty not being filtered on the subproperty level #1251

Open junjou opened 1 month ago

junjou commented 1 month ago

It seems that the LanguageProperty filter doesn't work with subproperties when querying entities. With this for example: GET /ngsi-ld/v1/entities/?type=Template&lang=fr Retrieving this:

{
    "id": "urn:ngsi-ld:LorawanConfig:Template",
    "type": "Template",
    "appEUI": {
        "type": "Property",
        "value": "Placeholder",
        "pattern": {
            "type": "LanguageProperty",
            "languageMap": {
                "en": "Only uppercase letters and numbers allowed",
                "fr": "Seules les lettres majuscules et les chiffres sont autorisés"
            }
        }
    },
    "pattern": {
        "type": "Property",
        "value": "Seules les lettres majuscules et les chiffres sont autorisés",
        "lang": "fr"
    }
}

No errors when creating an entity with a subproperty of type LanguageProperty.

bobeal commented 1 month ago

Actually not implemented yet.