enhancementgood first issuehelp wanted
仓库指标
- 星标
- (6,272 个星标)
- PR 合并指标
- (平均合并 2天 15小时) (30 天内合并 73 个 PR)
描述
When trying to generate with orval using it's exposed generate function, we get the same functionality as we get from orval tool itself. It's not always desirable, especially for error handling.
Is it possible to expose lower level functions or some wrapper around generateSpec that still throws errors, that we can handle later manually? For example something like this API:
import { generate, logError } from 'orval';
import orvalConfig from './orval.config.ts';
try {
await generate(orvalConfig);
} catch (error) {
logError(error);
// handle appropriately
}