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

Handle malformed baseType data with extraneous whitespace #921

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mportiz08
Copy link
Contributor

Bug/issue #, if applicable: 139449414

Summary

This adds some small sanitization logic to the PropertyListKeyType component to better handle situations where it may get baseType data that has extraneous leading/trailing whitespace. See the added unit test for an example—in that example, the UI should render "array of dictionaries" instead of "array of dictionary".

Testing

Steps:

  1. See unit test for example.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran npm test, and it succeeded
  • Updated documentation if necessary

@mportiz08 mportiz08 requested a review from marinaaisa December 20, 2024 21:17
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.

1 participant