Skip to content

Commit 17cfda8

Browse files
committed
fix: update package structure for overrides
Signed-off-by: Felipe Zipitria <[email protected]>
1 parent c334dae commit 17cfda8

File tree

9 files changed

+2041
-59
lines changed

9 files changed

+2041
-59
lines changed

cmd/generate-doc-yaml-schema/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ package main
66
import (
77
"os"
88

9-
overrides "github.com/coreruleset/ftw-tests-schema/types/overrides"
10-
test "github.com/coreruleset/ftw-tests-schema/types/test"
9+
"github.com/coreruleset/ftw-tests-schema/types"
10+
"github.com/coreruleset/ftw-tests-schema/types/overrides"
1111
)
1212

1313
func main() {
14-
data, err := test.GetFTWTestDoc().Encode()
14+
data, err := types.GetFTWTestDoc().Encode()
1515
if err != nil {
1616
panic(err)
1717
}
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright 2023 OWASP CRS
22
// SPDX-License-Identifier: Apache-2.0
33

4-
package types
4+
package helpers
55

6-
func intPtr(i int) *int {
6+
func IntPtr(i int) *int {
77
return &i
88
}
99

10-
func boolPtr(b bool) *bool {
10+
func BoolPtr(b bool) *bool {
1111
return &b
1212
}
1313

14-
func strPtr(s string) *string {
14+
func StrPtr(s string) *string {
1515
return &s
1616
}

0 commit comments

Comments
 (0)