I discovered that OpenAPIV3Parser provides methods to deserialize Open API doc JSON, but doesn't allow to serialize it back. If, for example, I need to make a deep copy of SwaggerParseResult, I can't serialize it back into a JSON and then create a new SwaggerParseResult by deserializing that JSON. In fact, I'm not sure what the official guideline is for recovering the original JSON from SwaggerParseResult (suppose I don't store it in memory)
Please consider providing out-of-the-box methods to serialize SwaggerParseResult back into JSON
I discovered that
OpenAPIV3Parser
provides methods to deserialize Open API doc JSON, but doesn't allow to serialize it back. If, for example, I need to make a deep copy ofSwaggerParseResult
, I can't serialize it back into a JSON and then create a newSwaggerParseResult
by deserializing that JSON. In fact, I'm not sure what the official guideline is for recovering the original JSON fromSwaggerParseResult
(suppose I don't store it in memory)Please consider providing out-of-the-box methods to serialize
SwaggerParseResult
back into JSON