You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In-Browser Mock Server: Added zero-dependency, in-browser OpenAPI mock server enabled via mock-server="true" — prototype frontends before backend APIs are ready without Prism, Docker, or external proxies.
Host Application Interception: Transparently intercepts both RapiDoc's internal "TRY" console and any in-page fetch() or XMLHttpRequest calls made by host frontend apps (React, Vue, Vite, etc.) with zero CORS issues.
Multi-Status Code Simulation: Added mock-server-status-code and mock-server-status-strategy with first, cycle (round-robin per endpoint for testing retry/backoff logic), and random (chaos engineering).
Simulated Network Latency: Added mock-server-delay to simulate artificial network delays in milliseconds for testing loading spinners, skeleton states, and optimistic UI transitions.
DevTools Intercept Logging: Added mock-server-log to output matched endpoints, synthetic status codes, and latency timing to the browser console.
Visual Mock Indicator: Added a prominent emerald MOCK ACTIVE badge in the API Server selector bar when mocking is active.
Bug Fixes & Schema Improvements
Fixed generateExample bug where a singular example was shadowed when examples was passed as an empty object.
Fixed handling of falsy schema values (0, false, "") in example generation.
Prevented combinatorial explosion in mergePropertyExamples by capping combinations at 10 to avoid performance freezes on deeply nested schemas.
Strictly omitted writeOnly fields from mock response payloads (preventing passwords and secrets from leaking into responses).
Improved MIME type formatting with native support for YAML content types and cleaner XML indentation.
Other Chores & Documentation
Added new interactive Mock Server Showcase page (/mock-server) with an in-page fetch() testing console.