You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Eric Pugh (Jira)" <ji...@apache.org> on 2026/05/13 11:46:00 UTC
[jira] [Created] (SOLR-18238) Add Stronger Validation to V2 API Parameters
Eric Pugh created SOLR-18238:
--------------------------------
Summary: Add Stronger Validation to V2 API Parameters
Key: SOLR-18238
URL: https://issues.apache.org/jira/browse/SOLR-18238
Project: Solr
Issue Type: Bug
Components: v2 API
Affects Versions: 10.0
Reporter: Eric Pugh
We have very inconsistent validation across our V2 apis for things like pathParam and queryParams. For example, I recently discovered that in the ConfigSets API DELETE it would accept a " " as a configset name!
It would be interesting to explore if we could have some validation that worked across our Java v2 apis, and maybe could also be used by the Solr UI as well.
I can imagine:
* Investigating the Jax RS Bean validation code.
* Establishing much stronger patterns in our own Java API code that validates using the same util methods across all APIS (strong patterns make it easier for the next person to do the right thing)
* Something around generating validation code in the OpenAPI spec generated language clients?
This would be a great ticket for someone familiar with modern web dev techniques to contribute to Solr!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org