encoding/openapi: remove deprecation notice of old api
None of these APIs are great.
Figure out a better way later.
Change-Id: I3f8dec7730c4c4ebf943d89a428a44490d297b10
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2941
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/encoding/openapi/doc.go b/encoding/openapi/doc.go
index 42bf934..3c388be 100644
--- a/encoding/openapi/doc.go
+++ b/encoding/openapi/doc.go
@@ -19,16 +19,3 @@
//
// See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schemaObject.
package openapi
-
-// TODO:
-// * map range boundaries to format For instance,
-// {
-// "type": "integer",
-// "minimum": -2147483648,
-// "maximum": 2147483647
-// }
-// should map to
-// {
-// "type": "integer",
-// "format": "int32"
-// }
diff --git a/encoding/openapi/openapi.go b/encoding/openapi/openapi.go
index 87d4067..3da88ca 100644
--- a/encoding/openapi/openapi.go
+++ b/encoding/openapi/openapi.go
@@ -56,13 +56,10 @@
}
// Config is now Generator
-// Deprecated: use Generator
type Config = Generator
// Gen generates the set OpenAPI schema for all top-level types of the
// given instance.
-//
-// Deprecated: use Generator.All.
func Gen(inst *cue.Instance, c *Config) ([]byte, error) {
if c == nil {
c = defaultConfig
@@ -113,5 +110,4 @@
// writeOnly sets the writeOnly flag for a property in the schema
// only one of readOnly and writeOnly may be set.
// discriminator explicitly sets a field as the discriminator field
-// deprecated sets a field as deprecated
//