w3c / automotive

W3C Automotive Working Group Specifications
Other
146 stars 68 forks source link

The data inconsistency in filters for paths and metadata requests #405

Closed crea7or closed 2 years ago

crea7or commented 3 years ago

For paths filter the specifications says we should use array of strings (paths pieces).

"filter": {"op-type":"paths", "op-value":["Door/*/*/IsOpen", "DriverPosition"]}

For metadata filter the specification says we should use string with properties delimited by '+' sign.

"filter":"{"op-type":"metadata", "op-value":"dynamic", "op-extra":"availability+validate"}

Why not to use array in case of metadata for a consistency across API?

UlfBj commented 3 years ago

Fixed in PR#408