Skip to content

Allow to disable the auto JSON HTML escaping #241

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

Merged
merged 12 commits into from
Apr 15, 2025

Conversation

Eyal-Shalev
Copy link
Contributor

Description

What - Allow to disable the auto JSON HTML escaping
Why - To support clients that don't use Terraform directly and are hurt by the forced encoding issue.
How - Used the json.Encoder structure and passed a global json_escape_html in the provider block.

Type of change

Please leave one option from the following and delete the rest:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Non-breaking change (fix of existing functionality that will not change current behavior)
  • Documentation (added/updated documentation)

@Eyal-Shalev Eyal-Shalev self-assigned this Apr 14, 2025
Copy link

github-actions bot commented Apr 14, 2025

TestsPassed ✅SkippedFailedTime ⏱
JUnit Test Report159 ran159 ✅0 ⚠️0 ❌17m 47s 148ms

Copy link

Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/14448913902/artifacts/2941048104

Code Coverage Total Percentage: 70.5%

Copy link

🚨 The new code coverage percentage is lower than the current one. Current coverage: 71.4
While the new one is: 70.5

Copy link

Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/14463648836/artifacts/2945959088

Code Coverage Total Percentage: 51.7%

Copy link

🚨 The new code coverage percentage is lower than the current one. Current coverage: 71.4
While the new one is: 51.7

name string
args args
want types.String
wantErr bool
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see tests for the wantErr property

Copy link

Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/14467161220/artifacts/2947172625

Code Coverage Total Percentage: 74.2%

@Eyal-Shalev Eyal-Shalev merged commit c509ac6 into main Apr 15, 2025
21 checks passed
@Eyal-Shalev Eyal-Shalev deleted the fix-url-encoding-of->-and-<- branch April 15, 2025 11:00
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