Skip to content

Commit e019478

Browse files
authored
fix: document all API fields (#764)
This documents all API fields and refactors three response types to use fewer structs.
1 parent 4350a9e commit e019478

34 files changed

+1142
-704
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ Once those are installed, run `make setup` to perform the repository setup.
2323
- Use `// FIXME: What to fix` or `// BUG: what is broken` to make pre-commit fail as a reminder to fix something before opening a PR
2424
- Use `// TODO: What needs to be done` for things that need to be changed at a later point in time
2525

26+
## API documentation
27+
28+
API documentation is auto-generated with swagger. All struct fields used in the API must have
29+
30+
- the `json` field
31+
- the `example` field, where a swagger-parseable example can be set (go basic data types)
32+
- A comment indicating the use of the field
33+
2634
## Commit messages
2735

2836
This project uses [Conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.4/)

0 commit comments

Comments
 (0)