https://github.com/goadesign/goadesignupgrader
A tool to upgrade a design definition for Goa from v1 to v3
https://github.com/goadesign/goadesignupgrader
go goa
Last synced: about 1 year ago
JSON representation
A tool to upgrade a design definition for Goa from v1 to v3
- Host: GitHub
- URL: https://github.com/goadesign/goadesignupgrader
- Owner: goadesign
- License: mit
- Created: 2019-11-21T08:28:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-15T12:03:08.000Z (over 5 years ago)
- Last Synced: 2025-04-03T11:22:58.987Z (about 1 year ago)
- Topics: go, goa
- Language: Go
- Homepage:
- Size: 118 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goadesignupgrader
A tool to upgrade a design definition for [Goa](https://github.com/goadesign/goa) from v1 to v3
[](https://godoc.org/github.com/goadesign/goadesignupgrader) [](https://github.com/goadesign/goadesignupgrader/actions) 
## Installation
```sh
$ go get github.com/goadesign/goadesignupgrader/...
```
## Usage
```sh
$ goadesignupgrader [design package]
```
You can use `-fix` flag to apply all suggested fixes.
```sh
$ goadesignupgrader -fix [design package]
```
It's recommended to use together with gormt.
```sh
$ 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](LICENSE)