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 matches of multiple schemas on "colorScheme" #15748

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

brandondong
Copy link
Contributor

@brandondong brandondong commented Jul 23, 2023

Adds proper type for SchemePair definition to avoid warnings about matches of multiple schemas.

Same fix as #4045

Validation Steps Performed

  • Pointed $schema to local file instead of https://aka.ms/terminal-profiles-schema
  • Confirmed warning goes away when using a string
  • Confirmed using the light/dark object format still passes validation
  • Confirmed values like "colorScheme": 3 no longer incorrectly pass validation whereas they would before

@brandondong
Copy link
Contributor Author

@microsoft-github-policy-service agree

@carlos-zamora
Copy link
Member

Thanks for doing this!

@carlos-zamora
Copy link
Member

Image from original PR body

image

@carlos-zamora carlos-zamora merged commit 57b9549 into microsoft:main Jul 27, 2023
6 checks passed
@DHowett
Copy link
Member

DHowett commented Jul 27, 2023

thanks so much! marked for servicing to 1.17 and 1.18

DHowett pushed a commit that referenced this pull request Jul 27, 2023
Adds proper `type` for `SchemePair` definition to avoid warnings about matches of multiple schemas.

Same fix as #4045

## Validation Steps Performed
- Pointed $schema to local file instead of https://aka.ms/terminal-profiles-schema
- Confirmed warning goes away when using a string
- Confirmed using the light/dark object format still passes validation
- Confirmed values like `"colorScheme": 3` no longer incorrectly pass validation whereas they would before

(cherry picked from commit 57b9549)
Service-Card-Id: 90012052
Service-Version: 1.17
DHowett pushed a commit that referenced this pull request Jul 27, 2023
Adds proper `type` for `SchemePair` definition to avoid warnings about matches of multiple schemas.

Same fix as #4045

## Validation Steps Performed
- Pointed $schema to local file instead of https://aka.ms/terminal-profiles-schema
- Confirmed warning goes away when using a string
- Confirmed using the light/dark object format still passes validation
- Confirmed values like `"colorScheme": 3` no longer incorrectly pass validation whereas they would before

(cherry picked from commit 57b9549)
Service-Card-Id: 90012053
Service-Version: 1.18
@brandondong brandondong deleted the colorScheme_matches branch July 28, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants