Skip to content

Latest commit

 

History

History
72 lines (54 loc) · 1.3 KB

README.md

File metadata and controls

72 lines (54 loc) · 1.3 KB

goadesignupgrader

A tool to upgrade a design definition for Goa from v1 to v3

GoDoc GitHub Actions GitHub

Installation

$ go get github.com/goadesign/goadesignupgrader/...

Usage

$ 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 .

Supported diagnostics

  • Import declarations
  • HTTP status constants

Supported DataTypes

  • DateTime
  • Integer

Supported DSLs

  • 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

License

MIT License