Skip to content

Commit

Permalink
Update api spec (#104)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jessfraz and github-actions[bot] authored Sep 6, 2023
1 parent 871c2f0 commit a0275c4
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 33 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.26
v0.2.27
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/perimeterx/marshmallow v1.1.4 // indirect
go4.org/intern v0.0.0-20211027215823-ae77deb06f29 // indirect
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/sys v0.12.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
Expand Down
8 changes: 7 additions & 1 deletion lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,15 @@ func TestFileConversion(t *testing.T) {
t.Fatalf("the file conversion completed at time is zero")
}

if len(fc.Output.Inner) == 0 {
if len(fc.Outputs) == 0 {
t.Fatalf("the file conversion output is empty")
}

for _, output := range fc.Outputs {
if len(output.Inner) == 0 {
t.Fatalf("the file conversion output body is empty")
}
}
}

func TestAsyncOperationStatus(t *testing.T) {
Expand Down
41 changes: 25 additions & 16 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -848,14 +848,6 @@
],
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
},
"output": {
"deprecated": true,
"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.",
"format": "byte",
"nullable": true,
"title": "String",
"type": "string"
},
"output_format": {
"allOf": [
{
Expand Down Expand Up @@ -6128,14 +6120,6 @@
],
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
},
"output": {
"deprecated": true,
"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.",
"format": "byte",
"nullable": true,
"title": "String",
"type": "string"
},
"output_format": {
"allOf": [
{
Expand Down Expand Up @@ -9187,6 +9171,31 @@
"window"
],
"type": "object"
},
{
"description": "Remove scene objects.",
"properties": {
"object_ids": {
"description": "Objects to remove.",
"items": {
"format": "uuid",
"type": "string"
},
"type": "array",
"uniqueItems": true
},
"type": {
"enum": [
"remove_scene_objects"
],
"type": "string"
}
},
"required": [
"object_ids",
"type"
],
"type": "object"
}
]
},
Expand Down
24 changes: 12 additions & 12 deletions types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0275c4

Please sign in to comment.