raml08openapi3

package
v1.18.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RAMLKeyDescription = "description"
	RAMLKeyDisplayName = "displayName"
)

Variables

View Source
var (
	ErrOperationMoreSetMissing  = errors.New("required parameter operationSetMore is empty")
	ErrRAMLDescriptionNotString = errors.New("format for RAML description is not string")
	ErrRAMLDispNameNotString    = errors.New("format for RAML description is not string")
)

Functions

func ReadFileOperations

func ReadFileOperations(filename string) (*openapi3.OperationMores, error)

ReadFileOperations reads a RAML v0.8 file and returns a set of `openapi3edit.OperationMore` structs. The properties `path`, `method`, `summary`, `description` are populated. OpenAPI `summary` is populated by the `displayName` property. Currently, this reads a JSON formatted file into a map[string]interface. This is useful after converting a RAML v0.8 spec using https://github.com/daviemakz/oas-raml-converter-cli.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL