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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to