API Tests not failing when json schema do not match

The test step do not fail when the JSON schema does not match with the API response. Schema was provided in SchemaPath. The tests shows result as “Passed”, while in the “Step execution details” page, it shows there was violation. What I want is the step to fail. The idea is to integrate with CI/CD pipeline, and the pipeline to fail if the json response do not match.
Is this possible? Any help is highly appreciated.