Replies: 2 comments 1 reply
-
Interesting... Can you share the exact way you send this API request? I still hope that might be just a syntax error somewhere. Alternatively you can also pass the list of valid languages in the YAML file, if that's an option. |
Beta Was this translation helpful? Give feedback.
-
Following up, trying to include it in the pipeline also doesn't seem to be helping. I've tried the following formats:
In each case I get the following error in the haystack-api container at boot-time:
Although looking at the docs it looks like valid_languages is a param for BaseConverter rather than preprocessor, so am I just putting it at the wrong spot? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working to modify the example RESTful API tutorial to work with opensearch:
Here's my docker-compose.yml:
Here's my tweaked pipeline file:
Using that docker compose seems to work.
In fact, everything works except the
valid_languages
parameter.From the docs, it says this should just be a python list, populated with values in ISO language format (ex:
["en"]
).However, it seems like no matter what value I pass for the list, I get a pydantic validation error similar to the following:
All of the other fields can be passed into swagger or via the API without an issue. But as soon as I try to put a value for
valid_languages
I get the validation error.Attempted values for valid_languages:
Nothing seems to pass validation.
Is there some specific way I would have to encode
["en"]
to pass the pydantic validation?Beta Was this translation helpful? Give feedback.
All reactions