Skip to content

Make it compatible with Chocolatey#42

Open
KoltesDigital wants to merge 2 commits intoDaniel15:masterfrom
KoltesDigital:master
Open

Make it compatible with Chocolatey#42
KoltesDigital wants to merge 2 commits intoDaniel15:masterfrom
KoltesDigital:master

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