Skip to content

Commit

Permalink
add path
Browse files Browse the repository at this point in the history
  • Loading branch information
rucciva committed Aug 29, 2024
1 parent 75e4674 commit 0d4eff8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/proxy/templates/proxy/strict/strict-interface.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ func (s StrictOperationsMap[T]) ToMap() (m map[string]T) {
{{ writeExtensionType . "StrictExtensionsStruct" }}

type StrictOperationsDataStruct struct {
Path string
Extension StrictExtensionsStruct
}
var StrictOperationsData = func() (m StrictOperationsMap[StrictOperationsDataStruct]) {
{{- range .}}
{
m.{{.OperationId}}.Path = `{{.Path}}`
b := []byte({{ writeExtensionData . }})
if err := json.Unmarshal(b, &m.{{.OperationId}}.Extension); err != nil {
panic(err)
Expand Down
5 changes: 5 additions & 0 deletions internal/proxy/testoutput/oapi-proxy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d4eff8

Please sign in to comment.