Skip to content

Commit a0275c4

Browse files
Update api spec (#104)
* YOYO NEW API SPEC! * fix tests Signed-off-by: Jess Frazelle <[email protected]> --------- Signed-off-by: Jess Frazelle <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 871c2f0 commit a0275c4

File tree

6 files changed

+48
-33
lines changed

6 files changed

+48
-33
lines changed

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.2.26
1+
v0.2.27

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/perimeterx/marshmallow v1.1.4 // indirect
2424
go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect
2525
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
26-
golang.org/x/sys v0.11.0 // indirect
26+
golang.org/x/sys v0.12.0 // indirect
2727
gopkg.in/yaml.v2 v2.4.0 // indirect
2828
gopkg.in/yaml.v3 v3.0.1 // indirect
2929
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
7575
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7676
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7777
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
78-
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
79-
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
78+
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
79+
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
8080
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
8181
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
8282
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

lib_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,15 @@ func TestFileConversion(t *testing.T) {
7373
t.Fatalf("the file conversion completed at time is zero")
7474
}
7575

76-
if len(fc.Output.Inner) == 0 {
76+
if len(fc.Outputs) == 0 {
7777
t.Fatalf("the file conversion output is empty")
7878
}
79+
80+
for _, output := range fc.Outputs {
81+
if len(output.Inner) == 0 {
82+
t.Fatalf("the file conversion output body is empty")
83+
}
84+
}
7985
}
8086

8187
func TestAsyncOperationStatus(t *testing.T) {

spec.json

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -848,14 +848,6 @@
848848
],
849849
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
850850
},
851-
"output": {
852-
"deprecated": true,
853-
"description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.",
854-
"format": "byte",
855-
"nullable": true,
856-
"title": "String",
857-
"type": "string"
858-
},
859851
"output_format": {
860852
"allOf": [
861853
{
@@ -6128,14 +6120,6 @@
61286120
],
61296121
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
61306122
},
6131-
"output": {
6132-
"deprecated": true,
6133-
"description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.",
6134-
"format": "byte",
6135-
"nullable": true,
6136-
"title": "String",
6137-
"type": "string"
6138-
},
61396123
"output_format": {
61406124
"allOf": [
61416125
{
@@ -9187,6 +9171,31 @@
91879171
"window"
91889172
],
91899173
"type": "object"
9174+
},
9175+
{
9176+
"description": "Remove scene objects.",
9177+
"properties": {
9178+
"object_ids": {
9179+
"description": "Objects to remove.",
9180+
"items": {
9181+
"format": "uuid",
9182+
"type": "string"
9183+
},
9184+
"type": "array",
9185+
"uniqueItems": true
9186+
},
9187+
"type": {
9188+
"enum": [
9189+
"remove_scene_objects"
9190+
],
9191+
"type": "string"
9192+
}
9193+
},
9194+
"required": [
9195+
"object_ids",
9196+
"type"
9197+
],
9198+
"type": "object"
91909199
}
91919200
]
91929201
},

types.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)