@@ -170,7 +170,7 @@ func newSchemaCmd(_ *log.Logger) *cobra.Command {
170170 spin := cmdutil .NewSpinner ("Fetching model schema..." )
171171 spin .Start ()
172172
173- schema , err := api .FetchModelSchema (cmd .Context (), air )
173+ modelSchema , err := api .FetchModelSchema (cmd .Context (), air )
174174 if err != nil {
175175 spin .Stop ()
176176 return err
@@ -181,13 +181,13 @@ func newSchemaCmd(_ *log.Logger) *cobra.Command {
181181
182182 // For JSON/YAML emit the full envelope unchanged.
183183 if format != output .FormatTable {
184- return output .Print (format , schema )
184+ return output .Print (format , modelSchema )
185185 }
186186
187187 // For table, parse the selected schema and build indented rows.
188- selected := schema .RequestSchema
188+ selected := modelSchema .RequestSchema
189189 if flags .response {
190- selected = schema .ResponseSchema
190+ selected = modelSchema .ResponseSchema
191191 }
192192
193193 var node schemaNode
@@ -200,8 +200,8 @@ func newSchemaCmd(_ *log.Logger) *cobra.Command {
200200 return err
201201 }
202202
203- if schema .Documentation != "" {
204- fmt .Fprintf (os .Stderr , "Docs: %s\n " , schema .Documentation )
203+ if modelSchema .Documentation != "" {
204+ fmt .Fprintf (os .Stderr , "Docs: %s\n " , modelSchema .Documentation )
205205 }
206206
207207 return nil
0 commit comments