{"action":"created","issue":{"url":"https://api.github.com/repos/open62541/open62541/issues/1837","repository_url":"https://api.github.com/repos/open62541/open62541","labels_url":"https://api.github.com/repos/open62541/open62541/issues/1837/labels{/name}","comments_url":"https://api.github.com/repos/open62541/open62541/issues/1837/comments","events_url":"https://api.github.com/repos/open62541/open62541/issues/1837/events","html_url":"https://github.com/open62541/open62541/issues/1837","id":330901645,"node_id":"MDU6SXNzdWUzMzA5MDE2NDU=","number":1837,"title":"Unable to set Length attribute of Field for StructuredType in .bsd file","user":{"login":"CaseyDev12","id":40123419,"node_id":"MDQ6VXNlcjQwMTIzNDE5","avatar_url":"https://avatars3.githubusercontent.com/u/40123419?v=4","gravatar_id":"","url":"https://api.github.com/users/CaseyDev12","html_url":"https://github.com/CaseyDev12","followers_url":"https://api.github.com/users/CaseyDev12/followers","following_url":"https://api.github.com/users/CaseyDev12/following{/other_user}","gists_url":"https://api.github.com/users/CaseyDev12/gists{/gist_id}","starred_url":"https://api.github.com/users/CaseyDev12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaseyDev12/subscriptions","organizations_url":"https://api.github.com/users/CaseyDev12/orgs","repos_url":"https://api.github.com/users/CaseyDev12/repos","events_url":"https://api.github.com/users/CaseyDev12/events{/privacy}","received_events_url":"https://api.github.com/users/CaseyDev12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-09T16:41:55Z","updated_at":"2018-06-10T17:29:03Z","closed_at":"2018-06-10T17:29:03Z","author_association":"NONE","body":"Riding the documentation, when I write this code in the .bsd file\r\n\r\n<opc:StructuredType Name=\"Type1\" BaseType=\"ua:ExtensionObject\">\r\n        <opc:Field Name=\"field_1\" TypeName=\"opc:Float\" Length=\"2\" />\r\n        <opc:Field Name=\"field_2\" TypeName=\"opc:Float\" />\r\n</opc:StructuredType>\r\n\r\nI expect that a structure TestVariable is generated with two fields and the field test1 is an array of size equal to 2. Instead in the generated .h file the field test1 is a scalar as shown below.\r\n\r\ntypedef struct {\r\n    UA_Float field_1;\r\n    UA_Float field_2;\r\n} UA_Type1;\r\n\r\n\r\nI would like to get the following structure:\r\n\r\ntypedef struct {\r\n    UA_Float field_1[2];\r\n    UA_Float field_2;\r\n} UA_Type1;\r\n\r\n\r\n\r\nChecklist\r\n=========\r\nPlease provide the following information:\r\n\r\n - [x] open62541 Version (release number or git tag):\r\n - [ ] Other OPC UA SDKs used (client or server): \r\n - [ ] Operating system:\r\n - [ ] Logs (with `UA_LOGLEVEL` set as low as necessary) attached\r\n - [ ] Wireshark network dump attached\r\n - [ ] Self-contained code example attached\r\n - [ ] Critical issue\r\n"},"comment":{"url":"https://api.github.com/repos/open62541/open62541/issues/comments/396066568","html_url":"https://github.com/open62541/open62541/issues/1837#issuecomment-396066568","issue_url":"https://api.github.com/repos/open62541/open62541/issues/1837","id":396066568,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjA2NjU2OA==","user":{"login":"jpfr","id":1726411,"node_id":"MDQ6VXNlcjE3MjY0MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1726411?v=4","gravatar_id":"","url":"https://api.github.com/users/jpfr","html_url":"https://github.com/jpfr","followers_url":"https://api.github.com/users/jpfr/followers","following_url":"https://api.github.com/users/jpfr/following{/other_user}","gists_url":"https://api.github.com/users/jpfr/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfr/subscriptions","organizations_url":"https://api.github.com/users/jpfr/orgs","repos_url":"https://api.github.com/users/jpfr/repos","events_url":"https://api.github.com/users/jpfr/events{/privacy}","received_events_url":"https://api.github.com/users/jpfr/received_events","type":"User","site_admin":false},"created_at":"2018-06-10T17:29:03Z","updated_at":"2018-06-10T17:29:03Z","author_association":"CONTRIBUTOR","body":"Fixed-lengths arrays do not exist in the OPC UA type system.\r\nThe structure can only contain a flexible-length array for field_1.\r\nOr you add two scalars `field_1_a` and `field_1_b`.\r\n\r\nCf. part 6 of the OPC UA standard."}}
{"actor":{"display_login":"jpfr"}}