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
+16 -16
View File
@@ -77,7 +77,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -315,7 +315,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -539,7 +539,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -781,7 +781,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -1002,7 +1002,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -1169,7 +1169,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -1454,7 +1454,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -1701,7 +1701,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -1986,7 +1986,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -2230,7 +2230,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -2397,7 +2397,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -2668,7 +2668,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -2901,7 +2901,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -3172,7 +3172,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
@@ -3402,7 +3402,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Authorization", "Token <TOKEN>")
@@ -3561,7 +3561,7 @@ func main() {
if err != nil {
fmt.Println(err)
return
{
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Token <TOKEN>")