I have an extension with schema key type ‘aa{ss}’, basically a list of maps with string keys and values. Now I need a new string key whose value is itself an array of maps with string keys and values.
I’ve been playing with replacing the schema with ‘s’ with JSON as the value, something like:
'[{"name": "Footeware", "url": "https://footeware.ca", "frequency": 120, "timeout": 10, "verb": "HEAD", "notifies": false, "visible": true, "ignoreTLSErrors": false, "ignoreRedirects": false, "headers": ['Authorization': 'Basic abc123']}]'
Where headers is an array of name-value pairs for HTTP request headers. I’ve got it working but I’m wondering if it’s the right decision. It means using proper booleans and ints rather than strings for some of the properties, the new headers array works fine, and the migration is relatively simple. I’m not seeing a downside and that worries me. I feel like I’m not seeing the whole picture maybe.
Any opinions please?