Documentation
¶
Index ¶
- func Load(rootDir string) (*model.Spec, error)
- func LoadFromBytes(bytes []byte) (*model.Spec, error)
- func LoadFromDir(rootDir string, apiFileName string) (*model.Spec, error)
- func LoadFromDirRoot(rootDir string) (*model.Spec, error)
- func LoadWithName(rootDir, apiFileName string) (*model.Spec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load reads the API specification from the provided root directory
func LoadFromBytes ¶
LoadFromBytes reads the API specification from the provided bytes in either YAML or JSON format
func LoadFromDir ¶
LoadFromDir reads the API specification from the provided root directory
func LoadFromDirRoot ¶
LoadFromDirRoot reads the API specification from the provided root directory
Types ¶
This section is empty.
Source Files
¶
- json.go
- loader.go
- yaml.go
Click to show internal directories.
Click to hide internal directories.