From 78d16a75cc41b4f2f5df089185b211ea40951482 Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 09:12:00 +0000 Subject: [PATCH] docs(api): add AX example for SDK availability check Co-Authored-By: Virgil --- codegen.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/codegen.go b/codegen.go index 411a6ab..3cb8d6d 100644 --- a/codegen.go +++ b/codegen.go @@ -95,6 +95,12 @@ func (g *SDKGenerator) buildArgs(generator, outputDir string) []string { } // Available checks if openapi-generator-cli is installed and accessible. +// +// Example: +// +// if !gen.Available() { +// t.Fatal("openapi-generator-cli is required") +// } func (g *SDKGenerator) Available() bool { _, err := exec.LookPath("openapi-generator-cli") return err == nil