JSON Schema refs generation is broken when using use refs=True
JSON Schema refs generation is broken when using use refs=True: a task in harbor-swesmith-rl-artifacts: Harbor SWE-Smith 强化学习数据产物 (Harbor dataset). When generating a JSON schema with use refs=True , the logic for handling references is incorrect. The code is adding the $id to objects that haven't…
The task
When generating a JSON schema with `use_refs=True`, the logic for handling references is incorrect. The code is adding the `$id` to objects that haven't been seen before and returning references to objects that have been seen, which is the opposite of what should happen.