Skip to content

Commit 549ba30

Browse files
committed
BUG/MEDIUM: spec: generate spec with proper template
1 parent 2dfa85f commit 549ba30

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
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: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10848,7 +10848,7 @@ parameters:
1084810848
description: Parent name
1084910849
required: true
1085010850
type: string
10851-
pattern: '^[^\r\n<>*;$#&{}"]+$'
10851+
pattern: '^[^\r\n<>*;$#&{}"]+$'
1085210852
full_section:
1085310853
name: full_section
1085410854
in: query
@@ -22325,7 +22325,7 @@ paths:
2232522325
- description: ACL file entry ID
2232622326
in: path
2232722327
name: id
22328-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22328+
pattern: ^[^\r\n<>*;$#&{}"]+$
2232922329
required: true
2233022330
type: string
2233122331
produces:
@@ -22418,7 +22418,7 @@ paths:
2241822418
- description: File entry ID
2241922419
in: path
2242022420
name: id
22421-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22421+
pattern: ^[^\r\n<>*;$#&{}"]+$
2242222422
required: true
2242322423
type: string
2242422424
produces:
@@ -22442,7 +22442,7 @@ paths:
2244222442
- description: File entry ID
2244322443
in: path
2244422444
name: id
22445-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22445+
pattern: ^[^\r\n<>*;$#&{}"]+$
2244622446
required: true
2244722447
type: string
2244822448
produces:
@@ -22527,7 +22527,7 @@ paths:
2252722527
- description: Server name
2252822528
in: path
2252922529
name: name
22530-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22530+
pattern: ^[^\r\n<>*;$#&{}"]+$
2253122531
required: true
2253222532
type: string
2253322533
- $ref: '#/parameters/parent_name'
@@ -22550,7 +22550,7 @@ paths:
2255022550
- description: Server name
2255122551
in: path
2255222552
name: name
22553-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22553+
pattern: ^[^\r\n<>*;$#&{}"]+$
2255422554
required: true
2255522555
type: string
2255622556
- $ref: '#/parameters/parent_name'
@@ -22573,7 +22573,7 @@ paths:
2257322573
- description: Server name
2257422574
in: path
2257522575
name: name
22576-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22576+
pattern: ^[^\r\n<>*;$#&{}"]+$
2257722577
required: true
2257822578
type: string
2257922579
- $ref: '#/parameters/parent_name'
@@ -22618,7 +22618,7 @@ paths:
2261822618
- description: Stick table name
2261922619
in: path
2262022620
name: name
22621-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22621+
pattern: ^[^\r\n<>*;$#&{}"]+$
2262222622
required: true
2262322623
type: string
2262422624
responses:
@@ -22725,7 +22725,7 @@ paths:
2272522725
- description: Map file name
2272622726
in: path
2272722727
name: name
22728-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22728+
pattern: ^[^\r\n<>*;$#&{}"]+$
2272922729
required: true
2273022730
type: string
2273122731
- description: If true, deletes file from disk
@@ -22754,7 +22754,7 @@ paths:
2275422754
- description: Map file name
2275522755
in: path
2275622756
name: name
22757-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22757+
pattern: ^[^\r\n<>*;$#&{}"]+$
2275822758
required: true
2275922759
type: string
2276022760
responses:
@@ -22776,7 +22776,7 @@ paths:
2277622776
- description: Map file name
2277722777
in: path
2277822778
name: name
22779-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22779+
pattern: ^[^\r\n<>*;$#&{}"]+$
2278022780
required: true
2278122781
type: string
2278222782
- default: false
@@ -22856,7 +22856,7 @@ paths:
2285622856
- description: Map id
2285722857
in: path
2285822858
name: id
22859-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22859+
pattern: ^[^\r\n<>*;$#&{}"]+$
2286022860
required: true
2286122861
type: string
2286222862
- $ref: '#/parameters/parent_name'
@@ -22882,7 +22882,7 @@ paths:
2288222882
- description: Map id
2288322883
in: path
2288422884
name: id
22885-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22885+
pattern: ^[^\r\n<>*;$#&{}"]+$
2288622886
required: true
2288722887
type: string
2288822888
- $ref: '#/parameters/parent_name'
@@ -22905,7 +22905,7 @@ paths:
2290522905
- description: Map id
2290622906
in: path
2290722907
name: id
22908-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
22908+
pattern: ^[^\r\n<>*;$#&{}"]+$
2290922909
required: true
2291022910
type: string
2291122911
- $ref: '#/parameters/parent_name'

0 commit comments

Comments
 (0)