Forum Discussion

manfredt's avatar
Occasional Contributor
2 years ago

JSON Schema Compliance Exception for http code 204

Hello community,


i'm using the JSON Schema Compliance assertion for my Rest services. Which works well, except for http code 204.

The description in JSON is:

"204": {
            "description": "No Content"

The error log shows:

Thu Aug 04 16:09:07 CEST 2022: ERROR: Error while performing assertion
Thu Aug 04 16:09:07 CEST 2022: ERROR: java.lang.NullPointerException

The assertion itself says: IllegalArgumentException: argument "content" is null


That is of course true but also expected for 204. Is there a fix or workaround for this issue? I'm using ReadyAPI 3.40.1