Maybe make stringify
function available on the instance of AsyncAPIDocument class
#421
Labels
stringify
function available on the instance of AsyncAPIDocument class
#421
The
stringify
function is at the moment static and available only directly on AsyncAPIDocument. We have the same withparse
function from the same class.from DX point of view, as a dev using the parser, it is confusing that:
stringify
can't be just used like other methods,asyncapi.stringify()
parse
is not actually a function outside the class, standalone likeparseFromUrl
In templates accessing these with
asyncapi.constructor.stringify(asyncapi)
feels weird 🤔or is it just me?
The text was updated successfully, but these errors were encountered: