Skip to content

feat: migrate Environment and Global Field modules to System.Text.Json#178

Open
OMpawar-21 wants to merge 8 commits into
enhc/betafrom
enhc/DX-7298
Open

feat: migrate Environment and Global Field modules to System.Text.Json#178
OMpawar-21 wants to merge 8 commits into
enhc/betafrom
enhc/DX-7298

Conversation

@OMpawar-21
Copy link
Copy Markdown
Contributor

Summary

Migrates Environment and Global Field modules from Newtonsoft.Json to System.Text.Json as part of the ongoing modernization effort.

Changes

  • Migrate Environment and Global Field models to use System.Text.Json attributes
  • Update service layer to use JsonSerializerOptions and modern serialization patterns
  • Re-enable previously disabled modules in project configuration
  • Ensure compatibility with existing STJ infrastructure

Technical Updates

  • Replace legacy JSON attributes with System.Text.Json equivalents
  • Update service constructors and serialization methods
  • Maintain API compatibility and existing interfaces
  • Follow established patterns from previous migrations

Benefits

  • Improved performance with System.Text.Json
  • Reduced dependency on legacy Newtonsoft.Json package
  • Consistent serialization approach across the SDK
  • Better integration with modern .NET ecosystem

Testing

  • All modules build successfully
  • No breaking changes to public APIs
  • Maintains backward compatibility

- Migrate Asset.cs, AssetModel.cs, Folder.cs, Version.cs to System.Text.Json
- Update service constructors to use JsonSerializerOptions instead of JsonSerializer
- Replace JsonTextWriter with Utf8JsonWriter in asset services
- Re-enable Stack.Asset() method and asset-related services in csproj
@OMpawar-21 OMpawar-21 requested a review from sunil-lakshman May 20, 2026 11:28
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner May 20, 2026 11:28
@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

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