v1.4.1: Hardening & Stability
Fixed
- detectSpecFormat fallback: When a file format cannot be determined, it now returns
ESpecFormat.Unknownand displays a clear error message, rather than silently falling back to parsing as OpenAPI and generating confusing parser errors. - Postman typings: Replaced all usages of
any[]in Postman rules with the newIPostmanIteminterface, ensuring type safety against malformed collection JSONs. - Postman interfaces moved: Moved all Postman type definitions (
IPostmanCollection,IPostmanItem, etc.) to the centralsrc/models/index.tsfile and added comprehensive TSDocs. - Deduce interactive auto-fixer: Hardened
smile deduceto abort gracefully if run against unsupported formats (like gRPC, Postman, GraphQL). Added guard checks to prevent crashes when JSON structures lack apathsobject.
Tests
- gRPC stress testing: Added
sample-grpc-large.proto, a real-world multi-service fixture with nested types and enums, to ensureprotobufjsrules scale gracefully. - OpenAPI stress testing: Added
sample-openapi-large.yamlwith 50 endpoints to ensure fast AST generation and linting.
📦 Installation
npm install -g @mrjacket/smileView Full CHANGELOG