feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.07k stars 752 forks source link

fix(schema): Allow query schemas with no properties, error on unsupported types #2904

Closed daffl closed 1 year ago

daffl commented 1 year ago

This pull request fixes an issue in the querySyntax helpers for JSON schema and TypeBox where it threw an error when passing an empty schema (no properties) which should still be possible. It now also throws a more descriptive error when trying to create a query syntax helper for a non-primitive type which is currently not possible.

netlify[bot] commented 1 year ago

Deploy Preview for feathers-dove canceled.

Name Link
Latest commit 45c59a42f82438a00d3d40d39243aa909cb9af22
Latest deploy log https://app.netlify.com/sites/feathers-dove/deploys/638b86286551da0008196d1b