Skip to content

Conversation

@spacewander
Copy link
Member

Fix #2967. Some plugins can't be rewritten, so I have to keep them.

Signed-off-by: spacewander spacewanderlzx@gmail.com

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@spacewander spacewander force-pushed the schema branch 2 times, most recently from 3a2fec8 to 7b6c3e3 Compare December 11, 2020 10:04
Fix apache#2967. Some plugins can't be rewritten, so I have to keep them.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
@spacewander spacewander marked this pull request as ready for review December 11, 2020 11:33
@spacewander spacewander requested a review from nic-chen December 13, 2020 11:24
@membphis membphis requested a review from tokers December 13, 2020 14:10
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
@spacewander spacewander merged commit fd2db60 into apache:master Dec 18, 2020

-- Previously, we multiply conf.timeout before storing it in etcd.
-- If the timeout is too large, we should not multiply it again.
if not (conf.timeout >= 1000 and conf.timeout % 1000 == 0) then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @spacewander 👋 May I know why we need to use multiply here? 🤔 because both our document[1] and code comments (schema.description) says it's in second.

[1] https://apisix.apache.org/docs/apisix/next/plugins/openid-connect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

request help: In some plugins, directly use the code for parameter verification, we need to replace it with JSONSchema verification

5 participants