feat(dev): Automagic building of new api docs

This commit is contained in:
2024-12-03 14:47:37 +01:00
parent 145ebd8346
commit 56e09dafb9
4 changed files with 65 additions and 0 deletions

View File

@@ -47,6 +47,13 @@ const docTemplate = `{
"models.Contract": {
"type": "object",
"properties": {
"locale": {
"type": "string",
"enum": [
"en",
"de"
]
},
"runners": {
"type": "array",
"items": {

View File

@@ -38,6 +38,13 @@
"models.Contract": {
"type": "object",
"properties": {
"locale": {
"type": "string",
"enum": [
"en",
"de"
]
},
"runners": {
"type": "array",
"items": {

View File

@@ -1,6 +1,11 @@
definitions:
models.Contract:
properties:
locale:
enum:
- en
- de
type: string
runners:
items:
$ref: '#/definitions/models.Runner'