Skip to content

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

License

Notifications You must be signed in to change notification settings

goadesign/goadesignupgrader

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages