commit | 3c437bd11f13d7bcdafdd59c246723601545536b | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Wed Apr 01 18:19:30 2020 +0200 |
committer | Marcel van Lohuizen <mpvl@google.com> | Sun Apr 05 12:09:39 2020 +0000 |
tree | 75209fc9b45f75fef8f4fc95fc89ada4bc991189 | |
parent | af71ef203db84e223a53fc754ef04071c1aaa752 [diff] [blame] |
encoding/openapi: encode title, version, and contact as fields This replaces the attributes encoding. As it now consults regular fields as values, this requires that schemas be encoded as definitions. Modified Instance.Doc to also fetch doc comments for files that do not have a package. This exposed a bug where default values were not made concrete. Issue #56 Change-Id: I31572ac0a09eecca23f6c632fb9c9731a9bdd7d2 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5440 Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
diff --git a/encoding/openapi/testdata/nested.cue b/encoding/openapi/testdata/nested.cue index a95b2b0..cbdfb36 100644 --- a/encoding/openapi/testdata/nested.cue +++ b/encoding/openapi/testdata/nested.cue
@@ -1,4 +1,4 @@ -package foo +// File comment. Struct :: { T :: int