RESTest icon indicating copy to clipboard operation
RESTest copied to clipboard

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

Open painsAgains opened this issue 3 years ago • 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

painsAgains avatar Oct 17 '22 09:10 painsAgains

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).

AML14 avatar Oct 28 '22 07:10 AML14