Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-105] config: Able to set a sub-key for keys that should not allow subkeys

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2017-10-26T22:46:09.000+0000
Affected Version/sAppc Daemon 1.0.0
Fix Version/sAppc Daemon 1.0.0
Componentsappcd-core
Labelsn/a
ReporterEwan Harris
AssigneeChris Barber
Created2017-10-24T13:02:20.000+0000
Updated2017-10-26T22:46:09.000+0000

Description

Description

Calling something like the below will set a key on the property even though the key is a boolean in the JSDoc, this occurs on master and my appcd config PR branch
appc config set telemetry.enabled.bar x
ws.send(JSON.stringify({
    version: '1.0',
    path: '/appcd/config',
    id: Date.now(),
    data: {
        "action": "set",
        "key": "telemetry.enabled.bar",
        "value": "x"
    }
}));

Comments

No comments

JSON Source