fix(api-template): repair Go brace and collapse summary whitespace (#735)

* fix(api-template): repair Go brace and collapse summary whitespace

The ApiTemplate accidentally emitted `{` instead of `}` for the closing
brace after the early-return error check in the Go example, leaving every
generated Go snippet syntactically invalid. The summary description was
also rendered raw, so multi-line OpenAPI descriptions broke the MDX
parser when the closing tag landed inside a JSX paragraph.

Fix the template at the source and regenerate the affected resource
pages so the API docs build cleanly again.

* chore: ignore generator tsbuildinfo
This commit is contained in:
Jack Carter
2026-05-08 09:32:51 -07:00
committed by GitHub
parent b99bf2838e
commit 3ff298c641
36 changed files with 201 additions and 206 deletions
+6 -6
View File
@@ -80,7 +80,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -261,7 +261,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -634,7 +634,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -947,7 +947,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -1314,7 +1314,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -1627,7 +1627,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")