Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJSON ¶
FromJSON reads an AsyncAPI document from input in a JSON format and stores it in the value. If the operation fails, the function returns an error.
See InvalidProperty, InvalidDocument, UnsupportedAsyncapiVersion in pkg/error.
func FromJSONWithYamlFallback ¶
FromJSONWithYamlFallback reads an AsyncAPI document from input in the JSON format. If the operation fails, the function tries to read the AsyncAPI document in the YAML format. If any of the decoding attempts succeeds, the result is stored in the value. If both decoding attempts fail, the function returns an error.
See InvalidProperty, InvalidDocument, UnsupportedAsyncapiVersion in pkg/error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.