isa-group/RESTest

es.us.isa.restest.inputs.stateful.BodyGenerator.generateStatefulObjectNode does not judge the Null value for 'schema' variable

Closed this issue · 1 comments

When I test my spec I found when 'schema' in spec is null, The RESTest can't filter this situation,and it will report a error like this:

image

So I check the 107 line in es.us.isa.restest.inputs.stateful.BodyGenerator.generateStatefulObjectNode,Then I found the variable 'schema' does not make a null judgment
image
When I add null value judgment(of cause you can add try catch), it works again

image

AML14 commented

Thanks for the report. If you want, you can submit a PR including this change and a corresponding test that checks that the functionality is implemented as expected (i.e., including an OpenAPI with a null schema and asserting that no exception is thrown).