A tool to upgrade a design definition for Goa from v1 to v3
$ go get github.com/goadesign/goadesignupgrader/...
$ goadesignupgrader [design package]
You can use -fix
flag to apply all suggested fixes.
$ goadesignupgrader -fix [design package]
It's recommended to use together with gormt.
$ goadesignupgrader -fix [design package]; gofmt -s -w .
- Import declarations
- HTTP status constants
DateTime
Integer
Action
BasePath
CONNECT
CanonicalActionName
Consumes
DELETE
DefaultMedia
GET
HEAD
HashOf
Headers
Media
MediaType
Metadata
OPTIONS
PATCH
POST
PUT
Params
Parent
Produces
Resource
Response
Routing
Status
TRACE