Get required parameters for handler
shader opened this issue · comments
Currently, bidi has the path-for
function which will give a url for a handler with parameters, but it returns an error if not all of the parameters are in the options map.
I'm trying to use bidi to implement client-side route discovery: the server uses a bidi structure, and shares it via one of the API endpoints. The client loads the structure, and also uses bidi to generate request urls. The main reason I need to get the set of required parameters is so that I can extract them from the parameters provided to a request, so that they don't get duplicated as query or form parameters.
Is there a way to do this that I missed, or how would you suggest going about it?
Would route-seq work for you here?