-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconstants.go
More file actions
35 lines (29 loc) · 1.29 KB
/
constants.go
File metadata and controls
35 lines (29 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
// Markdown template constants for consistent formatting across the generated documentation.
const (
// Basic formatting
newline = "\n"
newlineDouble = "\n\n"
// Table headers and separators (clean content + formatting)
pathsTableHeader = "| Path | Operations |" + newline + "| --- | --- |" + newline
paramsTableHeader = "| Name | Required | Type | Description | Example |" + newline + "| --- | --- | --- | --- | --- |" + newline
responsesTableHeader = "| Status Code | Description |" + newline + "| --- | --- |" + newline
propsTableHeader = "| Name | Type | Description | Example |" + newline + "| --- | --- | --- | --- |" + newline
// Section headers (clean content without formatting)
pathsSection = "## Paths"
definitionsSection = "## Definitions"
parametersSection = "**Parameters:**"
requestBodySection = "**Request Body:**"
responsesSection = "**Responses:**"
propertiesSection = "**Properties:**"
enumsSection = "## Enums"
// Type indicators
objectTypeLabel = "**Type:** object"
mapTypePrefix = "**Type:** map[*]->"
// Complex formatting
sectionSeparator = newlineDouble + "---" + newlineDouble
// URL fragments (no formatting needed)
definitionsPrefix = "#/definitions/"
enumsPrefix = "#/enums/"
pathPrefix = "#path"
)