-
Notifications
You must be signed in to change notification settings - Fork 42
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
/list
endpoint is not listing morph modes
#206
Comments
Try beta.apertium.org. I believe other modes are listed. They're disabled in the config on the production site. |
I think you've found the source of the issue. This could be repaired easily then. The question is then whether the docs or the code is right. @sushain97, @TinoDidriksen, @unhammer? |
Not necessarily. A well-written function can be used for related but different things.
That is exactly expected behaviour. Everything looks good here. |
…dated ListHandler for /list
@jonorthwash please check if PR #230 does what you're looking for, let me know if any further adjustments are to be made. |
According to the docs, this is not what this endpoint is intended to do, nothing in the documentation mentioned that if no query parameter is passed then it gets all the available modes. It is mentioned in the function of the endpoint |
@Mohab96 The issue's author highlighted that, based on the documentation, the expected behavior of the
Consequently, I pursued this approach. Let's await further clarification from the author to ensure alignment with expectations. |
I think the original intent was that The documentation does not make the behavior of We could take one of three options:
I'm biased against (2) since it's backwards incompatible (albeit likely not a big deal). Option (3) would further complicate the potential return types of |
I have a docker image with a single apertium language module.
When
/list
is queries explicitly for analysers and generators, it reports their availability:Use of the modes also works. However, when I query
/list
without specifying type, it does not report the analysers and generators:According to the documentation,
/list
should be returning all mode names, not just language pairs.I can't figure out if this unexpected (for me) behaviour is a bug, incorrect/out-of-date documentation, or a mis-configuration on my part.
The text was updated successfully, but these errors were encountered: