Skip to content

Commit 491acfa

Browse files
mjuragaGopher Bot
authored andcommitted
BUG/MEDIUM: spec: generate spec with proper template
1 parent b572614 commit 491acfa

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

cmd/specification/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"bytes"
66
"flag"
77
"fmt"
8-
"html/template"
98
"os"
109
"path"
1110
"path/filepath"
1211
"sort"
1312
"strings"
13+
"text/template"
1414

1515
"github.com/go-openapi/swag/mangling"
1616
"github.com/haproxytech/client-native/v6/configuration/parents"

specification/build/haproxy_spec.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12036,7 +12036,7 @@ parameters:
1203612036
description: Parent name
1203712037
required: true
1203812038
type: string
12039-
pattern: '^[^\r\n<>*;$#&{}"]+$'
12039+
pattern: '^[^\r\n<>*;$#&{}"]+$'
1204012040
full_section:
1204112041
name: full_section
1204212042
in: query
@@ -25430,7 +25430,7 @@ paths:
2543025430
- description: ACL file entry ID
2543125431
in: path
2543225432
name: id
25433-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25433+
pattern: ^[^\r\n<>*;$#&{}"]+$
2543425434
required: true
2543525435
type: string
2543625436
produces:
@@ -25523,7 +25523,7 @@ paths:
2552325523
- description: File entry ID
2552425524
in: path
2552525525
name: id
25526-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25526+
pattern: ^[^\r\n<>*;$#&{}"]+$
2552725527
required: true
2552825528
type: string
2552925529
produces:
@@ -25547,7 +25547,7 @@ paths:
2554725547
- description: File entry ID
2554825548
in: path
2554925549
name: id
25550-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25550+
pattern: ^[^\r\n<>*;$#&{}"]+$
2555125551
required: true
2555225552
type: string
2555325553
produces:
@@ -25632,7 +25632,7 @@ paths:
2563225632
- description: Server name
2563325633
in: path
2563425634
name: name
25635-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25635+
pattern: ^[^\r\n<>*;$#&{}"]+$
2563625636
required: true
2563725637
type: string
2563825638
- $ref: '#/parameters/parent_name'
@@ -25655,7 +25655,7 @@ paths:
2565525655
- description: Server name
2565625656
in: path
2565725657
name: name
25658-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25658+
pattern: ^[^\r\n<>*;$#&{}"]+$
2565925659
required: true
2566025660
type: string
2566125661
- $ref: '#/parameters/parent_name'
@@ -25678,7 +25678,7 @@ paths:
2567825678
- description: Server name
2567925679
in: path
2568025680
name: name
25681-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25681+
pattern: ^[^\r\n<>*;$#&{}"]+$
2568225682
required: true
2568325683
type: string
2568425684
- $ref: '#/parameters/parent_name'
@@ -25751,7 +25751,7 @@ paths:
2575125751
- description: SSL CA file name
2575225752
in: path
2575325753
name: name
25754-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25754+
pattern: ^[^\r\n<>*;$#&{}"]+$
2575525755
required: true
2575625756
type: string
2575725757
responses:
@@ -25771,7 +25771,7 @@ paths:
2577125771
- description: SSL CA file name
2577225772
in: path
2577325773
name: name
25774-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25774+
pattern: ^[^\r\n<>*;$#&{}"]+$
2577525775
required: true
2577625776
type: string
2577725777
produces:
@@ -25797,7 +25797,7 @@ paths:
2579725797
- description: SSL CA file name
2579825798
in: path
2579925799
name: name
25800-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25800+
pattern: ^[^\r\n<>*;$#&{}"]+$
2580125801
required: true
2580225802
type: string
2580325803
- in: formData
@@ -25825,7 +25825,7 @@ paths:
2582525825
- description: SSL CA file name
2582625826
in: path
2582725827
name: name
25828-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25828+
pattern: ^[^\r\n<>*;$#&{}"]+$
2582925829
required: true
2583025830
type: string
2583125831
- description: Payload of the cert entry
@@ -25856,7 +25856,7 @@ paths:
2585625856
- description: SSL CA file name
2585725857
in: path
2585825858
name: name
25859-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25859+
pattern: ^[^\r\n<>*;$#&{}"]+$
2586025860
required: true
2586125861
type: string
2586225862
- description: SSL CA file index
@@ -25929,7 +25929,7 @@ paths:
2592925929
- description: SSL certificate name
2593025930
in: path
2593125931
name: name
25932-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25932+
pattern: ^[^\r\n<>*;$#&{}"]+$
2593325933
required: true
2593425934
type: string
2593525935
responses:
@@ -25949,7 +25949,7 @@ paths:
2594925949
- description: SSL certificate name
2595025950
in: path
2595125951
name: name
25952-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25952+
pattern: ^[^\r\n<>*;$#&{}"]+$
2595325953
required: true
2595425954
type: string
2595525955
produces:
@@ -25973,7 +25973,7 @@ paths:
2597325973
- description: SSL certificate name
2597425974
in: path
2597525975
name: name
25976-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25976+
pattern: ^[^\r\n<>*;$#&{}"]+$
2597725977
required: true
2597825978
type: string
2597925979
- in: formData
@@ -26041,7 +26041,7 @@ paths:
2604126041
- description: CRL file name
2604226042
in: path
2604326043
name: name
26044-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26044+
pattern: ^[^\r\n<>*;$#&{}"]+$
2604526045
required: true
2604626046
type: string
2604726047
responses:
@@ -26061,7 +26061,7 @@ paths:
2606126061
- description: CRL file name
2606226062
in: path
2606326063
name: name
26064-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26064+
pattern: ^[^\r\n<>*;$#&{}"]+$
2606526065
required: true
2606626066
type: string
2606726067
- description: Entry index to return. Starts at 1. If not provided, all entries are returned.
@@ -26093,7 +26093,7 @@ paths:
2609326093
- description: CRL file name
2609426094
in: path
2609526095
name: name
26096-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26096+
pattern: ^[^\r\n<>*;$#&{}"]+$
2609726097
required: true
2609826098
type: string
2609926099
- description: CRL file contents
@@ -26136,13 +26136,13 @@ paths:
2613626136
- description: SSL crt list name
2613726137
in: query
2613826138
name: name
26139-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26139+
pattern: ^[^\r\n<>*;$#&{}"]+$
2614026140
required: true
2614126141
type: string
2614226142
- description: SSL cert entry name
2614326143
in: query
2614426144
name: cert_file
26145-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26145+
pattern: ^[^\r\n<>*;$#&{}"]+$
2614626146
required: true
2614726147
type: string
2614826148
- description: The line number where the entry is located, in case several entries share the same certificate.
@@ -26170,7 +26170,7 @@ paths:
2617026170
- description: SSL crt-list filename
2617126171
in: query
2617226172
name: name
26173-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26173+
pattern: ^[^\r\n<>*;$#&{}"]+$
2617426174
required: true
2617526175
type: string
2617626176
produces:
@@ -26192,7 +26192,7 @@ paths:
2619226192
- description: SSL crt-list filename
2619326193
in: query
2619426194
name: name
26195-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26195+
pattern: ^[^\r\n<>*;$#&{}"]+$
2619626196
required: true
2619726197
type: string
2619826198
- in: body
@@ -26236,7 +26236,7 @@ paths:
2623626236
- description: Stick table name
2623726237
in: path
2623826238
name: name
26239-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26239+
pattern: ^[^\r\n<>*;$#&{}"]+$
2624026240
required: true
2624126241
type: string
2624226242
responses:
@@ -26343,7 +26343,7 @@ paths:
2634326343
- description: Map file name
2634426344
in: path
2634526345
name: name
26346-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26346+
pattern: ^[^\r\n<>*;$#&{}"]+$
2634726347
required: true
2634826348
type: string
2634926349
- description: If true, deletes file from disk
@@ -26372,7 +26372,7 @@ paths:
2637226372
- description: Map file name
2637326373
in: path
2637426374
name: name
26375-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26375+
pattern: ^[^\r\n<>*;$#&{}"]+$
2637626376
required: true
2637726377
type: string
2637826378
responses:
@@ -26394,7 +26394,7 @@ paths:
2639426394
- description: Map file name
2639526395
in: path
2639626396
name: name
26397-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26397+
pattern: ^[^\r\n<>*;$#&{}"]+$
2639826398
required: true
2639926399
type: string
2640026400
- default: false
@@ -26474,7 +26474,7 @@ paths:
2647426474
- description: Map id
2647526475
in: path
2647626476
name: id
26477-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26477+
pattern: ^[^\r\n<>*;$#&{}"]+$
2647826478
required: true
2647926479
type: string
2648026480
- $ref: '#/parameters/parent_name'
@@ -26500,7 +26500,7 @@ paths:
2650026500
- description: Map id
2650126501
in: path
2650226502
name: id
26503-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26503+
pattern: ^[^\r\n<>*;$#&{}"]+$
2650426504
required: true
2650526505
type: string
2650626506
- $ref: '#/parameters/parent_name'
@@ -26523,7 +26523,7 @@ paths:
2652326523
- description: Map id
2652426524
in: path
2652526525
name: id
26526-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26526+
pattern: ^[^\r\n<>*;$#&{}"]+$
2652726527
required: true
2652826528
type: string
2652926529
- $ref: '#/parameters/parent_name'
@@ -26580,7 +26580,7 @@ paths:
2658026580
- description: Certificate file name
2658126581
in: query
2658226582
name: certificate
26583-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26583+
pattern: ^[^\r\n<>*;$#&{}"]+$
2658426584
required: true
2658526585
type: string
2658626586
responses:

0 commit comments

Comments
 (0)