Skip to content

Commit 5518afe

Browse files
committed
BUG/MEDIUM: spec: generate spec with proper template
1 parent 7eb6211 commit 5518afe

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
@@ -12204,7 +12204,7 @@ parameters:
1220412204
description: Parent name
1220512205
required: true
1220612206
type: string
12207-
pattern: '^[^\r\n<>*;$#&{}"]+$'
12207+
pattern: '^[^\r\n<>*;$#&{}"]+$'
1220812208
full_section:
1220912209
name: full_section
1221012210
in: query
@@ -25598,7 +25598,7 @@ paths:
2559825598
- description: ACL file entry ID
2559925599
in: path
2560025600
name: id
25601-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25601+
pattern: ^[^\r\n<>*;$#&{}"]+$
2560225602
required: true
2560325603
type: string
2560425604
produces:
@@ -25691,7 +25691,7 @@ paths:
2569125691
- description: File entry ID
2569225692
in: path
2569325693
name: id
25694-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25694+
pattern: ^[^\r\n<>*;$#&{}"]+$
2569525695
required: true
2569625696
type: string
2569725697
produces:
@@ -25715,7 +25715,7 @@ paths:
2571525715
- description: File entry ID
2571625716
in: path
2571725717
name: id
25718-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25718+
pattern: ^[^\r\n<>*;$#&{}"]+$
2571925719
required: true
2572025720
type: string
2572125721
produces:
@@ -25800,7 +25800,7 @@ paths:
2580025800
- description: Server name
2580125801
in: path
2580225802
name: name
25803-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25803+
pattern: ^[^\r\n<>*;$#&{}"]+$
2580425804
required: true
2580525805
type: string
2580625806
- $ref: '#/parameters/parent_name'
@@ -25823,7 +25823,7 @@ paths:
2582325823
- description: Server name
2582425824
in: path
2582525825
name: name
25826-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25826+
pattern: ^[^\r\n<>*;$#&{}"]+$
2582725827
required: true
2582825828
type: string
2582925829
- $ref: '#/parameters/parent_name'
@@ -25846,7 +25846,7 @@ paths:
2584625846
- description: Server name
2584725847
in: path
2584825848
name: name
25849-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25849+
pattern: ^[^\r\n<>*;$#&{}"]+$
2585025850
required: true
2585125851
type: string
2585225852
- $ref: '#/parameters/parent_name'
@@ -25919,7 +25919,7 @@ paths:
2591925919
- description: SSL CA file name
2592025920
in: path
2592125921
name: name
25922-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25922+
pattern: ^[^\r\n<>*;$#&{}"]+$
2592325923
required: true
2592425924
type: string
2592525925
responses:
@@ -25939,7 +25939,7 @@ paths:
2593925939
- description: SSL CA file name
2594025940
in: path
2594125941
name: name
25942-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25942+
pattern: ^[^\r\n<>*;$#&{}"]+$
2594325943
required: true
2594425944
type: string
2594525945
produces:
@@ -25965,7 +25965,7 @@ paths:
2596525965
- description: SSL CA file name
2596625966
in: path
2596725967
name: name
25968-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25968+
pattern: ^[^\r\n<>*;$#&{}"]+$
2596925969
required: true
2597025970
type: string
2597125971
- in: formData
@@ -25993,7 +25993,7 @@ paths:
2599325993
- description: SSL CA file name
2599425994
in: path
2599525995
name: name
25996-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25996+
pattern: ^[^\r\n<>*;$#&{}"]+$
2599725997
required: true
2599825998
type: string
2599925999
- description: Payload of the cert entry
@@ -26024,7 +26024,7 @@ paths:
2602426024
- description: SSL CA file name
2602526025
in: path
2602626026
name: name
26027-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26027+
pattern: ^[^\r\n<>*;$#&{}"]+$
2602826028
required: true
2602926029
type: string
2603026030
- description: SSL CA file index
@@ -26097,7 +26097,7 @@ paths:
2609726097
- description: SSL certificate name
2609826098
in: path
2609926099
name: name
26100-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26100+
pattern: ^[^\r\n<>*;$#&{}"]+$
2610126101
required: true
2610226102
type: string
2610326103
responses:
@@ -26117,7 +26117,7 @@ paths:
2611726117
- description: SSL certificate name
2611826118
in: path
2611926119
name: name
26120-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26120+
pattern: ^[^\r\n<>*;$#&{}"]+$
2612126121
required: true
2612226122
type: string
2612326123
produces:
@@ -26141,7 +26141,7 @@ paths:
2614126141
- description: SSL certificate name
2614226142
in: path
2614326143
name: name
26144-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26144+
pattern: ^[^\r\n<>*;$#&{}"]+$
2614526145
required: true
2614626146
type: string
2614726147
- in: formData
@@ -26209,7 +26209,7 @@ paths:
2620926209
- description: CRL file name
2621026210
in: path
2621126211
name: name
26212-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26212+
pattern: ^[^\r\n<>*;$#&{}"]+$
2621326213
required: true
2621426214
type: string
2621526215
responses:
@@ -26229,7 +26229,7 @@ paths:
2622926229
- description: CRL file name
2623026230
in: path
2623126231
name: name
26232-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26232+
pattern: ^[^\r\n<>*;$#&{}"]+$
2623326233
required: true
2623426234
type: string
2623526235
- description: Entry index to return. Starts at 1. If not provided, all entries are returned.
@@ -26261,7 +26261,7 @@ paths:
2626126261
- description: CRL file name
2626226262
in: path
2626326263
name: name
26264-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26264+
pattern: ^[^\r\n<>*;$#&{}"]+$
2626526265
required: true
2626626266
type: string
2626726267
- description: CRL file contents
@@ -26304,13 +26304,13 @@ paths:
2630426304
- description: SSL crt list name
2630526305
in: query
2630626306
name: name
26307-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26307+
pattern: ^[^\r\n<>*;$#&{}"]+$
2630826308
required: true
2630926309
type: string
2631026310
- description: SSL cert entry name
2631126311
in: query
2631226312
name: cert_file
26313-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26313+
pattern: ^[^\r\n<>*;$#&{}"]+$
2631426314
required: true
2631526315
type: string
2631626316
- description: The line number where the entry is located, in case several entries share the same certificate.
@@ -26338,7 +26338,7 @@ paths:
2633826338
- description: SSL crt-list filename
2633926339
in: query
2634026340
name: name
26341-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26341+
pattern: ^[^\r\n<>*;$#&{}"]+$
2634226342
required: true
2634326343
type: string
2634426344
produces:
@@ -26360,7 +26360,7 @@ paths:
2636026360
- description: SSL crt-list filename
2636126361
in: query
2636226362
name: name
26363-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26363+
pattern: ^[^\r\n<>*;$#&{}"]+$
2636426364
required: true
2636526365
type: string
2636626366
- in: body
@@ -26404,7 +26404,7 @@ paths:
2640426404
- description: Stick table name
2640526405
in: path
2640626406
name: name
26407-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26407+
pattern: ^[^\r\n<>*;$#&{}"]+$
2640826408
required: true
2640926409
type: string
2641026410
responses:
@@ -26511,7 +26511,7 @@ paths:
2651126511
- description: Map file name
2651226512
in: path
2651326513
name: name
26514-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26514+
pattern: ^[^\r\n<>*;$#&{}"]+$
2651526515
required: true
2651626516
type: string
2651726517
- description: If true, deletes file from disk
@@ -26540,7 +26540,7 @@ paths:
2654026540
- description: Map file name
2654126541
in: path
2654226542
name: name
26543-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26543+
pattern: ^[^\r\n<>*;$#&{}"]+$
2654426544
required: true
2654526545
type: string
2654626546
responses:
@@ -26562,7 +26562,7 @@ paths:
2656226562
- description: Map file name
2656326563
in: path
2656426564
name: name
26565-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26565+
pattern: ^[^\r\n<>*;$#&{}"]+$
2656626566
required: true
2656726567
type: string
2656826568
- default: false
@@ -26642,7 +26642,7 @@ paths:
2664226642
- description: Map id
2664326643
in: path
2664426644
name: id
26645-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26645+
pattern: ^[^\r\n<>*;$#&{}"]+$
2664626646
required: true
2664726647
type: string
2664826648
- $ref: '#/parameters/parent_name'
@@ -26668,7 +26668,7 @@ paths:
2666826668
- description: Map id
2666926669
in: path
2667026670
name: id
26671-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26671+
pattern: ^[^\r\n<>*;$#&{}"]+$
2667226672
required: true
2667326673
type: string
2667426674
- $ref: '#/parameters/parent_name'
@@ -26691,7 +26691,7 @@ paths:
2669126691
- description: Map id
2669226692
in: path
2669326693
name: id
26694-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26694+
pattern: ^[^\r\n<>*;$#&{}"]+$
2669526695
required: true
2669626696
type: string
2669726697
- $ref: '#/parameters/parent_name'
@@ -26748,7 +26748,7 @@ paths:
2674826748
- description: Certificate file name
2674926749
in: query
2675026750
name: certificate
26751-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26751+
pattern: ^[^\r\n<>*;$#&{}"]+$
2675226752
required: true
2675326753
type: string
2675426754
responses:

0 commit comments

Comments
 (0)