You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ This document is a short guide for contributing to this project.
6
6
7
7
## API Specification - Development guide
8
8
9
+
### Dataplane API generation
9
10
Data Plane API is generated using [go-swagger](https://github.com/go-swagger/go-swagger) from the swagger spec found [here](https://github.com/haproxytech/client-native/blob/master/specification/build/haproxy_spec.yaml) using the following command.
10
11
11
12
```
@@ -21,6 +22,39 @@ make generate-native
21
22
This command generates some of the files in this project, which are marked with // Code generated by go-swagger; DO NOT EDIT.
22
23
comments at the top of the files. These are not to be edited, as they are overwritten when specification is changed and the above-mentioned command is run. If you want to change those files, please change the specification where necessary and then generate them again.
23
24
25
+
### handlers/parents_xxx_generated.go generation
26
+
27
+
Some handler files `handler/parents_xxx_generated.go` are automatically generated. For this use the following command:
28
+
```
29
+
make generate-parent-aliases
30
+
```
31
+
32
+
Pre-requisites: for this command to run you need to update the following files:
- Contains the list of operations to generate an alias for in the `handler/parents_xxx_generated.go`.
55
+
- Note that the list of parents for wich an alias is generated is defined in: *client-native* (refer to client-native `specification/README.md`)
56
+
57
+
24
58
## Commit Messages and General Style
25
59
26
60
For commit messages and general style please follow the haproxy project's [CONTRIBUTING guide](https://github.com/haproxy/haproxy/blob/master/CONTRIBUTING) and use that where applicable.
0 commit comments