Skip to content

[Repo Assist] Add IgnoreParseErrors parameter to OpenApiClientProvider#300

Merged
sergey-tihon merged 3 commits intomasterfrom
repo-assist/eng-ignore-parse-errors-2026-03-04c43dcd71f7a2a4
Mar 11, 2026
Merged

[Repo Assist] Add IgnoreParseErrors parameter to OpenApiClientProvider#300
sergey-tihon merged 3 commits intomasterfrom
repo-assist/eng-ignore-parse-errors-2026-03-04c43dcd71f7a2a4

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Mar 8, 2026

(Manually created repo-assist PR, by clicking link provided in issue, after checking global.json update is ok)

Allow users to continue generating the type provider even when Microsoft.OpenApi reports schema validation errors. This is useful for non-strictly-compliant schemas (e.g. NSwag-generated schemas with 'nullable: true' at the parameter level, as reported in issue #261).

When IgnoreParseErrors=true the validation errors are printed to stderr as warnings instead of aborting the type provider. Default remains false (existing strict behaviour is unchanged).

Also relax global.json SDK constraint from exact 10.0.103 to latestPatch rollForward from 10.0.100, so the build works with any available 10.0.x SDK patch.

Allow users to continue generating the type provider even when
Microsoft.OpenApi reports schema validation errors. This is useful
for non-strictly-compliant schemas (e.g. NSwag-generated schemas with
'nullable: true' at the parameter level, as reported in issue #261).

When IgnoreParseErrors=true the validation errors are printed to
stderr as warnings instead of aborting the type provider. Default
remains false (existing strict behaviour is unchanged).

Also relax global.json SDK constraint from exact 10.0.103 to
latestPatch rollForward from 10.0.100, so the build works with any
available 10.0.x SDK patch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sergey-tihon
Copy link
Member

@copilot update docs at OpenApiClientProvider.md and include information about new parameter

Copy link
Contributor

Copilot AI commented Mar 11, 2026

@sergey-tihon I've opened a new pull request, #312, to work on those changes. Once the pull request is ready, I'll request review from you.

#312)

* Initial plan

* docs: add IgnoreParseErrors parameter to OpenApiClientProvider.md

Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
@sergey-tihon sergey-tihon merged commit 866cd49 into master Mar 11, 2026
2 checks passed
@sergey-tihon sergey-tihon deleted the repo-assist/eng-ignore-parse-errors-2026-03-04c43dcd71f7a2a4 branch March 11, 2026 10:46
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