swagger2 icon indicating copy to clipboard operation
swagger2 copied to clipboard

support loading from string?

Open qinst64 opened this issue 5 years ago • 0 comments

I can find it supports loadDocumentSync, which accepts filepath as input . what about adding support for string in case the doc is aleady in the memory?

e.g. for yamljs it has YAML.parse ans YAML.load for yaml it has YAML.parse only but you can read file first, thus we still can deal with both file & string.

The currently version uses yamljs and only implements YAML.load, I can load from file, but cannot do it the other way.

qinst64 avatar Jun 18 '20 12:06 qinst64