We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to add a custom plugins filter by tag with case insensitive like this post: swagger-api/swagger-ui#3876 (comment)
I try to add but it's not working.
fastify.register(fastifySwaggerUI, { routePrefix: '/documentation', uiConfig: { displayRequestDuration: true, filter: true, tryItOutEnabled: true, plugins: [CaseInsensitiveFilterPlugin], }, });
const CaseInsensitiveFilterPlugin = function (system) { return { fn: { opsFilter: (taggedOps, phrase) => { console.log('test'); return taggedOps.filter((tagObj, tag) => tag.toLowerCase().indexOf(phrase.toLowerCase()) !== -1); }, }, }; };
The text was updated successfully, but these errors were encountered:
Basically the duplicate of #25 .
The issue is that the uiConfig is serialized to json and supplied by a rest-call. And functions cant be serialized. I will close this in favor of #25
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Issue
I want to add a custom plugins filter by tag with case insensitive like this post:
swagger-api/swagger-ui#3876 (comment)
I try to add but it's not working.
The text was updated successfully, but these errors were encountered: