Skip to content

Commit 2d5494e

Browse files
mjuragaGopher Bot
authored andcommitted
BUG/MEDIUM: spec: generate spec with proper template
1 parent 1b1bf28 commit 2d5494e

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
@@ -12197,7 +12197,7 @@ parameters:
1219712197
description: Parent name
1219812198
required: true
1219912199
type: string
12200-
pattern: '^[^\r\n<>*;$#&{}"]+$'
12200+
pattern: '^[^\r\n<>*;$#&{}"]+$'
1220112201
full_section:
1220212202
name: full_section
1220312203
in: query
@@ -25591,7 +25591,7 @@ paths:
2559125591
- description: ACL file entry ID
2559225592
in: path
2559325593
name: id
25594-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25594+
pattern: ^[^\r\n<>*;$#&{}"]+$
2559525595
required: true
2559625596
type: string
2559725597
produces:
@@ -25684,7 +25684,7 @@ paths:
2568425684
- description: File entry ID
2568525685
in: path
2568625686
name: id
25687-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25687+
pattern: ^[^\r\n<>*;$#&{}"]+$
2568825688
required: true
2568925689
type: string
2569025690
produces:
@@ -25708,7 +25708,7 @@ paths:
2570825708
- description: File entry ID
2570925709
in: path
2571025710
name: id
25711-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25711+
pattern: ^[^\r\n<>*;$#&{}"]+$
2571225712
required: true
2571325713
type: string
2571425714
produces:
@@ -25793,7 +25793,7 @@ paths:
2579325793
- description: Server name
2579425794
in: path
2579525795
name: name
25796-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25796+
pattern: ^[^\r\n<>*;$#&{}"]+$
2579725797
required: true
2579825798
type: string
2579925799
- $ref: '#/parameters/parent_name'
@@ -25816,7 +25816,7 @@ paths:
2581625816
- description: Server name
2581725817
in: path
2581825818
name: name
25819-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25819+
pattern: ^[^\r\n<>*;$#&{}"]+$
2582025820
required: true
2582125821
type: string
2582225822
- $ref: '#/parameters/parent_name'
@@ -25839,7 +25839,7 @@ paths:
2583925839
- description: Server name
2584025840
in: path
2584125841
name: name
25842-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25842+
pattern: ^[^\r\n<>*;$#&{}"]+$
2584325843
required: true
2584425844
type: string
2584525845
- $ref: '#/parameters/parent_name'
@@ -25912,7 +25912,7 @@ paths:
2591225912
- description: SSL CA file name
2591325913
in: path
2591425914
name: name
25915-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25915+
pattern: ^[^\r\n<>*;$#&{}"]+$
2591625916
required: true
2591725917
type: string
2591825918
responses:
@@ -25932,7 +25932,7 @@ paths:
2593225932
- description: SSL CA file name
2593325933
in: path
2593425934
name: name
25935-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25935+
pattern: ^[^\r\n<>*;$#&{}"]+$
2593625936
required: true
2593725937
type: string
2593825938
produces:
@@ -25958,7 +25958,7 @@ paths:
2595825958
- description: SSL CA file name
2595925959
in: path
2596025960
name: name
25961-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25961+
pattern: ^[^\r\n<>*;$#&{}"]+$
2596225962
required: true
2596325963
type: string
2596425964
- in: formData
@@ -25986,7 +25986,7 @@ paths:
2598625986
- description: SSL CA file name
2598725987
in: path
2598825988
name: name
25989-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
25989+
pattern: ^[^\r\n<>*;$#&{}"]+$
2599025990
required: true
2599125991
type: string
2599225992
- description: Payload of the cert entry
@@ -26017,7 +26017,7 @@ paths:
2601726017
- description: SSL CA file name
2601826018
in: path
2601926019
name: name
26020-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26020+
pattern: ^[^\r\n<>*;$#&{}"]+$
2602126021
required: true
2602226022
type: string
2602326023
- description: SSL CA file index
@@ -26090,7 +26090,7 @@ paths:
2609026090
- description: SSL certificate name
2609126091
in: path
2609226092
name: name
26093-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26093+
pattern: ^[^\r\n<>*;$#&{}"]+$
2609426094
required: true
2609526095
type: string
2609626096
responses:
@@ -26110,7 +26110,7 @@ paths:
2611026110
- description: SSL certificate name
2611126111
in: path
2611226112
name: name
26113-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26113+
pattern: ^[^\r\n<>*;$#&{}"]+$
2611426114
required: true
2611526115
type: string
2611626116
produces:
@@ -26134,7 +26134,7 @@ paths:
2613426134
- description: SSL certificate name
2613526135
in: path
2613626136
name: name
26137-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26137+
pattern: ^[^\r\n<>*;$#&{}"]+$
2613826138
required: true
2613926139
type: string
2614026140
- in: formData
@@ -26202,7 +26202,7 @@ paths:
2620226202
- description: CRL file name
2620326203
in: path
2620426204
name: name
26205-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26205+
pattern: ^[^\r\n<>*;$#&{}"]+$
2620626206
required: true
2620726207
type: string
2620826208
responses:
@@ -26222,7 +26222,7 @@ paths:
2622226222
- description: CRL file name
2622326223
in: path
2622426224
name: name
26225-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26225+
pattern: ^[^\r\n<>*;$#&{}"]+$
2622626226
required: true
2622726227
type: string
2622826228
- description: Entry index to return. Starts at 1. If not provided, all entries are returned.
@@ -26254,7 +26254,7 @@ paths:
2625426254
- description: CRL file name
2625526255
in: path
2625626256
name: name
26257-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26257+
pattern: ^[^\r\n<>*;$#&{}"]+$
2625826258
required: true
2625926259
type: string
2626026260
- description: CRL file contents
@@ -26297,13 +26297,13 @@ paths:
2629726297
- description: SSL crt list name
2629826298
in: query
2629926299
name: name
26300-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26300+
pattern: ^[^\r\n<>*;$#&{}"]+$
2630126301
required: true
2630226302
type: string
2630326303
- description: SSL cert entry name
2630426304
in: query
2630526305
name: cert_file
26306-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26306+
pattern: ^[^\r\n<>*;$#&{}"]+$
2630726307
required: true
2630826308
type: string
2630926309
- description: The line number where the entry is located, in case several entries share the same certificate.
@@ -26331,7 +26331,7 @@ paths:
2633126331
- description: SSL crt-list filename
2633226332
in: query
2633326333
name: name
26334-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26334+
pattern: ^[^\r\n<>*;$#&{}"]+$
2633526335
required: true
2633626336
type: string
2633726337
produces:
@@ -26353,7 +26353,7 @@ paths:
2635326353
- description: SSL crt-list filename
2635426354
in: query
2635526355
name: name
26356-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26356+
pattern: ^[^\r\n<>*;$#&{}"]+$
2635726357
required: true
2635826358
type: string
2635926359
- in: body
@@ -26397,7 +26397,7 @@ paths:
2639726397
- description: Stick table name
2639826398
in: path
2639926399
name: name
26400-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26400+
pattern: ^[^\r\n<>*;$#&{}"]+$
2640126401
required: true
2640226402
type: string
2640326403
responses:
@@ -26504,7 +26504,7 @@ paths:
2650426504
- description: Map file name
2650526505
in: path
2650626506
name: name
26507-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26507+
pattern: ^[^\r\n<>*;$#&{}"]+$
2650826508
required: true
2650926509
type: string
2651026510
- description: If true, deletes file from disk
@@ -26533,7 +26533,7 @@ paths:
2653326533
- description: Map file name
2653426534
in: path
2653526535
name: name
26536-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26536+
pattern: ^[^\r\n<>*;$#&{}"]+$
2653726537
required: true
2653826538
type: string
2653926539
responses:
@@ -26555,7 +26555,7 @@ paths:
2655526555
- description: Map file name
2655626556
in: path
2655726557
name: name
26558-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26558+
pattern: ^[^\r\n<>*;$#&{}"]+$
2655926559
required: true
2656026560
type: string
2656126561
- default: false
@@ -26635,7 +26635,7 @@ paths:
2663526635
- description: Map id
2663626636
in: path
2663726637
name: id
26638-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26638+
pattern: ^[^\r\n<>*;$#&{}"]+$
2663926639
required: true
2664026640
type: string
2664126641
- $ref: '#/parameters/parent_name'
@@ -26661,7 +26661,7 @@ paths:
2666126661
- description: Map id
2666226662
in: path
2666326663
name: id
26664-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26664+
pattern: ^[^\r\n<>*;$#&{}"]+$
2666526665
required: true
2666626666
type: string
2666726667
- $ref: '#/parameters/parent_name'
@@ -26684,7 +26684,7 @@ paths:
2668426684
- description: Map id
2668526685
in: path
2668626686
name: id
26687-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26687+
pattern: ^[^\r\n<>*;$#&{}"]+$
2668826688
required: true
2668926689
type: string
2669026690
- $ref: '#/parameters/parent_name'
@@ -26741,7 +26741,7 @@ paths:
2674126741
- description: Certificate file name
2674226742
in: query
2674326743
name: certificate
26744-
pattern: ^[^\r\n&lt;>*;$#&{}"]+$
26744+
pattern: ^[^\r\n<>*;$#&{}"]+$
2674526745
required: true
2674626746
type: string
2674726747
responses:

0 commit comments

Comments
 (0)