{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"production_rules.schema.json","title":"Production Rules File","type":"object","required":["version","rules"],"properties":{"version":{"type":"string"},"condition_operators":{"type":"array","items":{"type":"string"}},"action_operators":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"object","required":["id","domain","priority","hard","logic","when","then","rationale"],"properties":{"id":{"type":"string"},"domain":{"type":"string"},"priority":{"type":"integer"},"hard":{"type":"boolean"},"logic":{"enum":["all","any"]},"when":{"type":"array","items":{"type":"object","required":["path","op"],"properties":{"path":{"type":"string"},"op":{"type":"string"},"value":{}}}},"then":{"type":"array","items":{"type":"object","required":["op"],"properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}}}},"rationale":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}}}}}}