zimicjs / zimic

TypeScript-first HTTP request mocking
https://npmjs.com/package/zimic
MIT License
9 stars 2 forks source link

Do not allow passing search params or headers when no schema is present #311

Closed diego-aquino closed 2 months ago

diego-aquino commented 3 months ago

When search params or headers are not defined in a service schema, using searchParams or headers in restrictions and responses should show a type error. However, up to v0.8.3, the types allowed any search params and headers to be used in this case.

github-actions[bot] commented 2 months ago

Released in v0.8.4 :tada: