Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

Why this PR?

#671

@zhiyuanliang-ms zhiyuanliang-ms requested a review from Copilot July 31, 2025 08:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for JSON comments in Azure App Configuration key values by enabling comment parsing in the JSON key value adapter. The implementation allows both single-line (//) and multi-line (/* */) comments to be properly handled when processing JSON configuration values.

  • Configures JSON parsing to skip comments during processing
  • Adds comprehensive test coverage for various comment scenarios including edge cases

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
JsonKeyValueAdapter.cs Adds JsonDocumentOptions with CommentHandling.Skip to enable comment support in JSON parsing
JsonContentTypeTests.cs Adds comprehensive test cases covering mixed comment styles, edge cases, and invalid JSON scenarios

rossgrambo
rossgrambo previously approved these changes Jul 31, 2025
Copy link
Member

@rossgrambo rossgrambo left a comment

Choose a reason for hiding this comment

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

Love that this is so straightforward.

jimmyca15
jimmyca15 previously approved these changes Aug 4, 2025
@zhiyuanliang-ms zhiyuanliang-ms dismissed stale reviews from jimmyca15 and rossgrambo via eb86aea August 5, 2025 05:28
@zhiyuanliang-ms zhiyuanliang-ms force-pushed the zhiyuanliang/support-jsonc branch from eb86aea to 5ab8381 Compare August 5, 2025 05:35
@zhiyuanliang-ms zhiyuanliang-ms merged commit c43aab3 into main Aug 6, 2025
3 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/support-jsonc branch August 6, 2025 02:05
zhiyuanliang-ms added a commit that referenced this pull request Aug 21, 2025
* Merge pull request #684 from Azure/zhiyuanliang/fix-test

Fix activity source test bug

* Fix bug with endpoint failover (#686)

* update endpoint in do while

* add test

* in progress

* update test, update logic to backoff using correct endpoint

* make test more specific

---------

Co-authored-by: AMER JUSUPOVIC <[email protected]>
Co-authored-by: Amer Jusupovic <[email protected]>

* Support comment in json key value (#685)

* support jsonc

* remove unused reference

* use private static option

* Add request tracing for Aspire usage (#687)

* add request tracing for aspire component

* update tag name

* version bump 8.4.0 (#690)

---------

Co-authored-by: AMER JUSUPOVIC <[email protected]>
Co-authored-by: Amer Jusupovic <[email protected]>
This was referenced Oct 1, 2025
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.

4 participants