Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedVersions = []string{
"2.0.0",
"2.1.0",
"2.2.0",
"2.3.0",
"2.4.0",
"2.5.0",
"2.6.0",
"3.0.0",
}
SupportedVersions describe the asyncapi-codegen supported versions.
Functions ¶
func IsMajorVersionSupported ¶ added in v0.39.0
IsMajorVersionSupported checks that the major version is supported.
func IsVersionSupported ¶ added in v0.32.0
IsVersionSupported checks that the version is supported.
Types ¶
type Specification ¶
type Specification interface { // MajorVersion returns the major version of the AsyncAPI specification. MajorVersion() int // Process processes all information in specification in order to link the // references, apply the traits and generating other information for code // generation. // // WARNING: this will alter the specification as you will find, by example, // traits applied in the specification. Process() error // AddDependency adds a dependency to the specification. AddDependency(path string, spec Specification) error }
Specification only contains common functions between each version. This should be casted to get all other functions, base on the version.
Click to show internal directories.
Click to hide internal directories.