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

[Bug]: GlobalFilter jsonschema validator always return 400 when afterPipeline not configured #797

Closed
jthann opened this issue Sep 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jthann
Copy link
Collaborator

jthann commented Sep 19, 2022

Describe the bug
When creating GlobalFilter object in Easegress using egctl,the response always return 400 code

To Reproduce
Using following yaml config, the DummyFilter can be replaced by any reasonable filters

kind: GlobalFilter
name: globalFilter
beforePipeline:
  flow:
    - filter: dummy-filter
  filters:
    - name: dummy-filter
      kind: DummyFilter

The response returned is

Error: 400: {"jsonschemaErrs":["afterPipeline: Must validate one and only one schema (oneOf)","afterPipeline.filters: Invalid type. Expected: array, given: null"]}

Expected behavior
GlobalFilter jsonschema validator should return 200 ok when afterPipeline not configured

@jthann jthann added the bug Something isn't working label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant