Skip to content

Commit

Permalink
Return back
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Nov 14, 2023
1 parent d92a037 commit b036170
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jsonmerge.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ func JSONMerge(data, patch json.RawMessage) (json.RawMessage, error) {
}
return merged, nil
}

// JsonMerge merges two JSON representation into a single object. `data` is the
// existing representation and `patch` is the new data to be merged in
//
// Deprecated: Use JSONMerge instead.
func JsonMerge(data, patch json.RawMessage) (json.RawMessage, error) {
return JSONMerge(data, patch)
}
6 changes: 6 additions & 0 deletions strictmiddleware/nethttp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ import (
type StrictHTTPHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (response interface{}, err error)

type StrictHTTPMiddlewareFunc func(f StrictHTTPHandlerFunc, operationID string) StrictHTTPHandlerFunc

// Deprecated: Use StrictHTTPHandlerFunc instead.
type StrictHttpHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (response interface{}, err error)

// Deprecated: Use StrictHTTPMiddlewareFunc instead.
type StrictHttpMiddlewareFunc func(f StrictHttpHandlerFunc, operationID string) StrictHttpHandlerFunc

0 comments on commit b036170

Please sign in to comment.