Files
varsity/index.ts
Luke Hagar c4a250359f Enhance .gitignore, update dependencies, and improve CLI functionality
- Expanded .gitignore to include additional build outputs, environment files, and IDE configurations.
- Updated bun.lock to include new dependencies: js-yaml and its types.
- Refactored index.ts to export new validation functions and types for better modularity.
- Updated package.json to reflect version bump to 1.0.3, added repository and homepage information, and improved script commands.
- Enhanced README.md with clearer usage instructions and examples for library and CLI usage.
- Improved CLI commands for validation, parsing, and reporting, including support for multiple sources and detailed output options.
- Added logging functionality throughout the codebase for better debugging and user feedback.
- Implemented recursive validation and reference analysis features for comprehensive OpenAPI specification validation.
2025-10-01 22:56:10 +00:00

51 lines
1.1 KiB
TypeScript

// Main functional exports
export {
validate,
parse,
generateValidationReport,
saveValidationReport,
validateWithReferences,
validateMultipleWithReferences,
analyzeDocumentReferences,
getSupportedVersions,
createVarsity,
// Individual module exports
parseOpenAPISpec,
validateBasicStructure,
validateOpenAPISpec,
generateReport,
saveReport,
// Recursive validation exports
validateRecursively,
validateMultipleRecursively,
analyzeReferences,
// Reference resolver exports
resolveReference,
findReferences,
resolveAllReferences,
// Partial validation exports
validatePartialDocument,
} from "./src/varsity.js";
// Type exports
export type {
ParsedSpec,
ValidationResult,
ValidationError,
ValidationOptions,
ReportOptions,
VarsityConfig,
OpenAPIVersion,
CLIResult,
RecursiveValidationResult,
} from "./src/types.js";
// Export types from other modules
export type {
ResolvedReference,
ReferenceContext,
} from "./src/ref-resolver.js";
// Default export - functional instance
export { default } from "./src/varsity.js";