From a86137611db760bdb38c0036cb8265109909e4c8 Mon Sep 17 00:00:00 2001 From: Jonathan Matthews Date: Fri, 10 May 2024 15:02:31 +0100 Subject: [PATCH] encoding/openapi: link to correct upstream doc This updates two links in the encoding/openapi package documentation to reflect a change in a third-party's default git branch name, and a different HTML fragment identifier used by their reference documentation. Signed-off-by: Jonathan Matthews Change-Id: Ie566aee5092eba91ca34e5a38f5968dffacfc1ce Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194552 Reviewed-by: Paul Jolly TryBot-Result: CUEcueckoo --- encoding/openapi/doc.go | 2 +- encoding/openapi/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/encoding/openapi/doc.go b/encoding/openapi/doc.go index 3c388befa00..a8eecb69559 100644 --- a/encoding/openapi/doc.go +++ b/encoding/openapi/doc.go @@ -17,5 +17,5 @@ // // It currently handles OpenAPI Schema components only. // -// See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schemaObject. +// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#schema-object package openapi diff --git a/encoding/openapi/types.go b/encoding/openapi/types.go index 6554c9683f9..aae0e107f5f 100644 --- a/encoding/openapi/types.go +++ b/encoding/openapi/types.go @@ -25,7 +25,7 @@ import ( "cuelang.org/go/cue/token" ) -// See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types +// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#data-types var cueToOpenAPI = map[string]string{ "int32": "int32", "int64": "int64",