aboutsummaryrefslogtreecommitdiffstats
path: root/golang/gen/restapi/embedded_spec.go
diff options
context:
space:
mode:
Diffstat (limited to 'golang/gen/restapi/embedded_spec.go')
-rw-r--r--golang/gen/restapi/embedded_spec.go28
1 files changed, 26 insertions, 2 deletions
diff --git a/golang/gen/restapi/embedded_spec.go b/golang/gen/restapi/embedded_spec.go
index 6a6cf356..4e08594f 100644
--- a/golang/gen/restapi/embedded_spec.go
+++ b/golang/gen/restapi/embedded_spec.go
@@ -72,6 +72,12 @@ func init() {
"$ref": "#/definitions/creator_entity"
}
},
+ "404": {
+ "description": "no such creator",
+ "schema": {
+ "$ref": "#/definitions/error"
+ }
+ },
"default": {
"description": "generic error response",
"schema": {
@@ -114,7 +120,13 @@ func init() {
"type": "string"
},
"state": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "wip",
+ "active",
+ "redirect",
+ "deleted"
+ ]
}
}
},
@@ -186,6 +198,12 @@ func init() {
"$ref": "#/definitions/creator_entity"
}
},
+ "404": {
+ "description": "no such creator",
+ "schema": {
+ "$ref": "#/definitions/error"
+ }
+ },
"default": {
"description": "generic error response",
"schema": {
@@ -228,7 +246,13 @@ func init() {
"type": "string"
},
"state": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "wip",
+ "active",
+ "redirect",
+ "deleted"
+ ]
}
}
},