发布

  • feat(runtime): enhance payload rule resolution with dynamic path support

    frostbyte_neo 发布于 2026-05-17 15:06:43 +00:00

    • Introduced resolvePayloadRulePaths function to dynamically resolve rule paths supporting array queries and complex logic.
    • Updated payload processing logic (apply defaults, overrides, filters) to handle resolved paths for better flexibility.
    • Added helper functions for path parsing, query matching, and logical resolution to improve modularity and reusability.
    • Introduced payload condition match logic, including match, not-match, exist, and not-exist rules in PayloadConfig.
    • Enhanced payloadModelRulesMatch function to support conditional checks at various levels.
    • Added helper methods for evaluating JSON path conditions and values.
    • Updated tests to validate new conditional rules against different payload scenarios.
    下载附件