Write an openapi spec for the worker API and use `deepmap/oapi-codegen`
to generate scaffolding for the server-side using the `labstack/echo`
server.
Incidentally, echo by default returns the errors in the same format that
worker API always has:
{ "message": "..." }
The API itself is unchanged to make this change easier to understand. It
will be changed to better suit our needs in future commits.
20 lines
691 B
Text
20 lines
691 B
Text
# Automatically normalize line endings for all text-based files
|
|
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion
|
|
* text=auto
|
|
|
|
# For the following file types, normalize line endings to LF on checking and
|
|
# prevent conversion to CRLF when they are checked out (this is required in
|
|
# order to prevent newline related issues)
|
|
.* text eol=lf
|
|
*.go text eol=lf
|
|
*.yml text eol=lf
|
|
*.html text eol=lf
|
|
*.css text eol=lf
|
|
*.js text eol=lf
|
|
*.json text eol=lf
|
|
LICENSE text eol=lf
|
|
|
|
# Exclude `website` and `cookbook` from GitHub's language statistics
|
|
# https://github.com/github/linguist#using-gitattributes
|
|
cookbook/* linguist-documentation
|
|
website/* linguist-documentation
|