digirati-co-uk / iiif-net

IIIF models for dotnet
MIT License
3 stars 1 forks source link

Allow `ImageRequest.Parse` to optionally reject bad parameters #45

Closed griffri closed 4 months ago

griffri commented 4 months ago

This PR adds an optional parameter to ImageRequest.Parse that determines if an exception should be thrown when bad parameters - i.e, routes with extra segments (.../iiif-img//1/2/my-asset/full/800,/0/default.jpg) or missing parameters (.../iiif-img/1/2/my-asset//800,//default.jpg) - is passed.