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

fix(plugin): field names with dashes #104

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Conversation

Leopoldthecoder
Copy link
Member

@Leopoldthecoder Leopoldthecoder commented Oct 10, 2023

Summary

Fixes a bug where the proxy-cache plugin cannot be successfully installed.

Cause: the schema of this plugin includes some fields whose names have dashes in them. Previously we only supported underscores in field names and dashes were treated as indicators for parent/child field.

This PR converts dashes to underscores before passing the schema to @kong-ui-public/forms and converts them back to dashes before submitting.

Issue reference

Fix #[issue number]

Copy link
Member

@sumimakito sumimakito left a comment

Choose a reason for hiding this comment

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

Manually tested and LGTM

@Leopoldthecoder Leopoldthecoder merged commit 9af2c4e into main Oct 11, 2023
18 checks passed
@Leopoldthecoder Leopoldthecoder deleted the fix/dashed-field-names branch October 11, 2023 09:20
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.

2 participants