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

[Question]: GlobalFilter : after pipeline is no Required in the document description , But it's actually Required, #820

Closed
3 tasks done
wj-stack opened this issue Oct 9, 2022 · 1 comment
Labels
question Further information is requested

Comments

@wj-stack
Copy link

wj-stack commented Oct 9, 2022

This is not Bug report or Feature request

  • I confirm that this is not bug report or feature request.

Is this question answered in the documentation?

  • I have searched the documentation

Is there an existing issue for this?

  • I have searched the existing issues

Your question

after pipeline is no Required in the document description,

But it's actually Required,

Actually I just need before pipeline

wyatt@wyatt-VirtualBox:~/code/api/regs$ echo '
> name: globalFilter-example
> kind: GlobalFilter
> beforePipeline:
>   flow: 
>   - filter: validator
> 
>   filters: 
>   - name: validator
>     kind: Validator 
> ' | egctl object create
Error: 400: {"jsonschemaErrs":["afterPipeline: Must validate one and only one schema (oneOf)","afterPipeline.filters: Invalid type. Expected: array, given: null"]}

@wj-stack wj-stack added the question Further information is requested label Oct 9, 2022
@localvar
Copy link
Collaborator

hi @wj-stack , I think this issue has already been fixed in #798 and I cannot reproduce it, the fix will be included in the next release. For now, please build from the main branch.

@wj-stack wj-stack closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants