Skip to content

Conversation

@baywet
Copy link
Member

@baywet baywet commented Dec 22, 2025

reflection of #2659

… pointers

When extension parsers throw OpenApiException, the exceptions are now caught in LoadExtension methods across all OpenAPI versions (V2, V3, V3.1, V3.2). This ensures the error pointer correctly includes all path segments (e.g., #/definitions/demo/x-tag instead of #/definitions/x-tag).

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

refactor: make V2 LoadExtension consistent with other versions

Moved the return statement for JsonNodeExtension outside the catch block to match the pattern used in V3, V31, and V32 deserializers.

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

style: use raw string literals for JSON test data

Changed from verbatim string literals (@"...") to raw string literals ("""...""") for consistency with existing test code.

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

chore: refactors test definition for better coverage

Signed-off-by: Vincent Biret <vibiret@microsoft.com>

chore: removes extraneous version
@baywet baywet requested a review from a team as a code owner December 22, 2025 19:47
@baywet baywet self-assigned this Dec 22, 2025
@baywet baywet enabled auto-merge December 22, 2025 19:47
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
12.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@baywet baywet merged commit 63cf4a3 into support/v2 Dec 22, 2025
15 of 16 checks passed
@baywet baywet deleted the fix/pointer-to-v2 branch December 22, 2025 20:20
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.

3 participants