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: exclude readonly params from deprecatedProps #561

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

julshotal
Copy link
Contributor

@julshotal julshotal commented Dec 14, 2021

🧰 Changes

We don't render readOnly params in the areas deprecatedProps are used for the accordion, so there's not point in adding them in and it can cause weird empty accordions if the only deprecated params are also readOnly.

This shouldn't affect responses where we do render readOnly params as we don't separate out deprecated params there

🧬 QA & Testing

see added test

if you sub the customer spec file where this was an issue for the deprecated spec in those tests, the tests will fail due to the deprecatedProps schema being null, which means this is working since their only deprecated prop is also readOnly

@julshotal julshotal requested review from erunion and Dashron December 14, 2021 20:45
@erunion erunion added the bug Something isn't working label Dec 14, 2021
@erunion erunion merged commit 3342bf2 into main Dec 14, 2021
@erunion erunion deleted the fix/deprecated-readonly-true-will-hide-the-rm-2999 branch December 14, 2021 20:49
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

Successfully merging this pull request may close these issues.

2 participants