Currently, examples in the spec suggest that selectors should be an array, although do not make clear how the members of that array should be formatted. In contrast, example JIM documents have selectors as an object.
We should decide between:
an object with CSS selector property keys and JSON Path / array of JSON Paths property values
an array, perhaps with members of the form { selector: string, path: string | string[] }
9.2.2 says: "Unlike CSS, however, it does not use selectors as an "object key", but rather as a value for a selector attribute, to fit the JSON schema and allow multiple rules to use the same selector."
Currently, examples in the spec suggest that
selectors
should be an array, although do not make clear how the members of that array should be formatted. In contrast, example JIM documents haveselectors
as an object.We should decide between:
{ selector: string, path: string | string[] }