Json schema repeats keys coming in response

am working on an ecommerce site and am trying to validate the keys coming through the response i’ve tried json schema but the problem is if i have like multiple orders coming through response the keys are repeating and schema also repeats the keys so if i have 100 orders schema is generated 100 times i just want it 1 time