Closed jiaxian-lin closed 1 year ago
Hello,
this does not seem a problem with the parsing of the specification, but with the handling of a parsed Operation object.
The Operation
objects parsed from the specification are read-only, and they need to be cloned in order to be manipulated. If you try to edit a read-only Operation
object, you will get that error.
Are you implementing a custom strategy or customizing an existing strategy? In that case, when you need to manipulate an Operation
object, you first need to get a clone of it with .deepClone()
, e.g.,
Operation myClonedAndEditableOperation = parsedOperation.deepClone();
If this is not the case, it could be a bug on our side. Could you please provide the full OpenAPI specification, so I can try to run RTG on my machine? Thanks.
Davide
Closing this issue because no futher information about the problem has been provided.
when I run RestTestGen in ubuntu, I got this ERROR, I don't know why and this open API file is converted by Swagger Editor
this is a part of my API file:
This document is handwritten, can you explain what formats RestTestGen can parse?