Skip to content

Ensure System.Text.Json SG diagnostics don't use locations from external assemblies #88424

@eiriktsarpalis

Description

@eiriktsarpalis
          We can consider making a type annotated with `[OptionsValidator]` to be a fallback in that case (worst case scenario is when a validator is applied on a type residing in another assembly).

For JSON source-gen, a class annotated with [JsonSerializable] can be considered as a fallback location.

Originally posted by @xakep139 in #88396 (comment)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions