Skip to content

Commit 1080968

Browse files
committed
[wip] mark deprecation
1 parent 2782f00 commit 1080968

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cobra.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ func BootstrapV3Cobra(rootCmd *cobra.Command, model libopenapi.DocumentModel[v3.
194194
return nil
195195
}
196196

197+
// Bootstraps a cobra.Command with the loaded model and a handler map
198+
//
199+
// Deprecated: Will be kept for backwards compatibility.
200+
// Use BootstrapV3Cobra instead.
197201
func BootstrapV3(rootCmd *cobra.Command, model libopenapi.DocumentModel[v3.Document], handlers map[string]Handler) error {
198202
return BootstrapV3Cobra(rootCmd, model, handlers)
199203
}

0 commit comments

Comments
 (0)