这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Jul 21, 2025

This PR reworks query param schemas


Basic changes:

  • Brings the JSON schemas of query params to common consistent form for easier support
  • Disables the ability to pass undeclared params to improve understanding of what is being passed and increase the security and durability of the system
  • Splits the schemas into separate files for better readability
  • Uses JSON schema compilation on the initialization stage before validation (when module loading) to increase performance
  • Adds official ajv-formats lib to have extra formats of validation like email
  • Makes corresponding minor changes due to adding the restriction of passing undeclared params

TODO:

  • Needs to rework filter param validation similarly in another PR
  • After the completion of reworking query param schemas need to remove the old validation module and JSON schemas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants