-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/openapi: add test cases for non-empty lists
An upcoming change to the CUE API to make lists consistent with structs for concreteness exposed a reliance of encoding/openapi on the current inconsistency. It also showed that despite there being logic in encoding/openapi for dealing with non-empty lists, that logic isn't tested anyway. Add a couple of test cases so that the behavior change in the upcoming CL will be clear. Note that the results here are not actually valid in OpenAPI 3.0, which does not support the form of `items` generated here (see #3480). For #3481 Signed-off-by: Roger Peppe <[email protected]> Change-Id: Ib477e11388715482d48c8101d67a47c8efc69f60 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202243 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters