commit | 9b70cf3370bc4b89b9dc1a4b4edf7f03c6175109 | [log] [tgz] |
---|---|---|
author | Eric Adlam <eadlam@gmail.com> | Sat Sep 28 11:45:31 2019 -0400 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Tue Oct 08 10:10:32 2019 +0000 |
tree | 00965582b4f8c869815d0e612726dfa5cbe9b461 | |
parent | ffff7faa4edf8d9124c56af402a04c722345dc35 [diff] [blame] |
encoding/openapi: add paths:{} Openapi specs are missing the paths attributes, which is a required attribute. This adds an empty paths attribute to the generated openapi spec. Change-Id: I18d98da0da0a042acb3f382ad38901f71b6f05d8 Fixes #134 Change-Id: I18d98da0da0a042acb3f382ad38901f71b6f05d8 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/3420 Reviewed-by: Eric Adlam <eadlam@gmail.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/encoding/openapi/testdata/oneof-funcs.json b/encoding/openapi/testdata/oneof-funcs.json index 157b53c..104adcb 100644 --- a/encoding/openapi/testdata/oneof-funcs.json +++ b/encoding/openapi/testdata/oneof-funcs.json
@@ -4,6 +4,7 @@ "title": "test", "version": "v1" }, + "paths": {}, "components": { "schemas": { "MYSTRING": {