[ https://jira.fiware.org/browse/HELP-15412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez reassigned HELP-15412: ------------------------------------- Assignee: Backlog Manager > FIWARE.Question.Tech.Which characters can be used in an attribute name? - FIWARE Orion. > --------------------------------------------------------------------------------------- > > Key: HELP-15412 > URL: https://jira.fiware.org/browse/HELP-15412 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Backlog Manager > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 01-02-2019 at 23:02 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54488078/which-characters-can-be-used-in-an-attribute-name-fiware-orion > +Question:+ > Which characters can be used in an attribute name? - FIWARE Orion > +Description:+ > I'd like to know details about character set and character code that can be used in an attribute name. I tried to create an entity that has an attribute name "日本語". I was able to create it in case of NGSIv1 but not in case of NGSIv2. > In case of NGSIv1 API, > Request: > (curl localhost:1026/v1/updateContext -sS --header 'Content-Type: application/json' \ > --header 'Accept: application/json' -d @- <<EOF) | jq . > { > "contextElements": [ > { > "type": "Test", > "isPattern": "false", > "id": "Testv1", > "attributes": [ > { > "name": "japanese", > "type": "Integer", > "value": "1" > }, > { > "name": "日本語", > "type": "Integer", > "value": "2" > } > ] > } > ], > "updateAction": "APPEND" > } > EOF > Response: > { > "contextResponses": [ > { > "contextElement": { > "type": "Test", > "isPattern": "false", > "id": "Testv1", > "attributes": [ > { > "name": "japanese", > "type": "Integer", > "value": "" > }, > { > "name": "日本語", > "type": "Integer", > "value": "" > } > ] > }, > "statusCode": { > "code": "200", > "reasonPhrase": "OK" > } > } > ] > } > In case of NGSIv2 API, > Request: > (curl localhost:1026/v2/entities -s -S -H 'Content-Type: application/json' \ > -d @- <<EOF) | jq . > { > "id": "Test1", > "type": "Test", > "japanese": { > "value": 1, > "type": "Integer" > }, > "日本語": { > "value": 2, > "type": "Integer" > } > } > EOF > Response: > { > "error": "BadRequest", > "description": "Invalid characters in attribute name" > } -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy