Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it compatible with Chocolatey #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KoltesDigital
Copy link

I've tried to use this project for hosting Chocolatey packages. It's almost good, but some requests were failing due to complex filters that are not handled yet. Specifically, choco info package-name leads to the following request:

GET /Packages()?$filter=(tolower(Id) eq 'package-name') and IsLatestVersion

Although this filter could have been parsed with a regex, I preferred to generate a parser, so that it could easily be enhanced later if needed. The generator is to be found here (PR adds mention in the README).

With this PR, the above request is successfully parsed and the response is as expected.

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.

1 participant