encoding/openapi: simplify based on user-defined format
For instance, don't use minimum and maximum for
int32 boundaries if the user indicated the field is an
int32.
Also move to apd instead of ints.
Issue #56
Change-Id: I472c3c2b1fd8622430595bd062cef3bbd53b62f1
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2376
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/encoding/openapi/openapi_test.go b/encoding/openapi/openapi_test.go
index 33a15e6..e1fd2e3 100644
--- a/encoding/openapi/openapi_test.go
+++ b/encoding/openapi/openapi_test.go
@@ -37,6 +37,14 @@
in, out string
config *Config
}{{
+ "simple.cue",
+ "simple.json",
+ resolveRefs,
+ }, {
+ "array.cue",
+ "array.json",
+ defaultConfig,
+ }, {
"oneof.cue",
"oneof.json",
defaultConfig,