vinzdeveloper / json-rule-editor

Json rule editor
GNU General Public License v3.0
375 stars 109 forks source link

Question: Inconsistency in the representation of the path property for nested objects in rules #67

Open bailarohit55 opened 10 months ago

bailarohit55 commented 10 months ago

When creating rules manually in code, I use '$.' to denote the outermost object in the path property of a condition, following the json-rules-engine documentation. However, I’ve noticed that when I create a rule for a nested property using the editor, it prepends the path with '.' instead of '$.'. This inconsistency is confusing and could potentially lead to errors. Could you please clarify the correct usage or consider aligning the editor’s behaviour with the json-rules-engine documentation? Also, thank you for the editor. It has helped 👍

vinzdeveloper commented 10 months ago

Thanks for spotting. i agree, it should go with "$." when processing path params of object. it will be fixed in next version.

bailarohit55 commented 10 months ago

Great! Thanks for the update.