( tool: Tool<Name, Config> )
| 1295 | * @category Utilities |
| 1296 | */ |
| 1297 | export const getJsonSchema = < |
| 1298 | Name extends string, |
| 1299 | Config extends { |
| 1300 | readonly parameters: AnyParametersSchema |
| 1301 | readonly success: Schema.Schema.Any |
| 1302 | readonly failure: Schema.Schema.All |
| 1303 | readonly failureMode: FailureMode |
| 1304 | } |
| 1305 | >( |
| 1306 | tool: Tool<Name, Config> |
| 1307 | ): JsonSchema.JsonSchema7 => getJsonSchemaFromSchemaAst(tool.parametersSchema.ast) |
| 1308 | |
| 1309 | /** |
| 1310 | * @since 1.0.0 |
nothing calls this directly
no test coverage detected