256 instantiations of JsonRequired
Microsoft.CodeAnalysis.LanguageServer.Protocol (250)
Protocol\AnnotatedTextEdit.cs (1)
22[JsonRequired]
Protocol\ApplyWorkspaceEditParams.cs (1)
33[JsonRequired]
Protocol\ApplyWorkspaceEditResponse.cs (1)
21[JsonRequired]
Protocol\ChangeAnnotation.cs (1)
24[JsonRequired]
Protocol\ClientInfo.cs (1)
19[JsonRequired]
Protocol\CodeAction.cs (1)
23[JsonRequired]
Protocol\CodeActionContext.cs (1)
28[JsonRequired]
Protocol\CodeActionDisabledReason.cs (1)
23[JsonRequired]
Protocol\CodeActionKindSetting.cs (1)
22[JsonRequired]
Protocol\CodeActionLiteralSetting.cs (1)
22[JsonRequired]
Protocol\CodeActionParams.cs (3)
22[JsonRequired] 33[JsonRequired] 44[JsonRequired]
Protocol\CodeActionResolveSupportSetting.cs (1)
21[JsonRequired]
Protocol\CodeLens.cs (1)
27[JsonRequired]
Protocol\ColorPresentation.cs (1)
25[JsonRequired]
Protocol\ColorPresentationParams.cs (3)
23[JsonRequired] 30[JsonRequired] 37[JsonRequired]
Protocol\Command.cs (2)
20[JsonRequired] 31[JsonRequired]
Protocol\CompletionContext.cs (1)
21[JsonRequired]
Protocol\CompletionItem.cs (1)
32[JsonRequired]
Protocol\CompletionItemTagSupportSetting.cs (1)
22[JsonRequired]
Protocol\CompletionList.cs (2)
24[JsonRequired] 57[JsonRequired]
Protocol\ConfigurationParams.cs (1)
21[JsonRequired]
Protocol\CreateFile.cs (1)
31[JsonRequired]
Protocol\DefaultBehaviorPrepareRename.cs (1)
23[JsonRequired]
Protocol\DeleteFile.cs (1)
31[JsonRequired]
Protocol\DidChangeTextDocumentParams.cs (2)
23[JsonRequired] 47[JsonRequired]
Protocol\DidCloseTextDocumentParams.cs (1)
21[JsonRequired]
Protocol\DidOpenTextDocumentParams.cs (1)
21[JsonRequired]
Protocol\DidSaveTextDocumentParams.cs (1)
21[JsonRequired]
Protocol\DocumentFormattingParams.cs (2)
22[JsonRequired] 33[JsonRequired]
Protocol\DocumentOnTypeFormattingOptions.cs (1)
21[JsonRequired]
Protocol\DocumentOnTypeFormattingParams.cs (2)
43[JsonRequired] 50[JsonRequired]
Protocol\DocumentRangeFormattingParams.cs (3)
21[JsonRequired] 32[JsonRequired] 43[JsonRequired]
Protocol\DocumentSymbol.cs (3)
25[JsonRequired] 79[JsonRequired] 91[JsonRequired]
Protocol\Extensions\VSProjectContext.cs (2)
19[JsonRequired] 30[JsonRequired]
Protocol\FileOperations\CreateFilesParams.cs (1)
22[JsonRequired]
Protocol\FileOperations\DeleteFilesParams.cs (1)
22[JsonRequired]
Protocol\FileOperations\DidChangeWatchedFilesParams.cs (1)
21[JsonRequired]
Protocol\FileOperations\DidChangeWatchedFilesRegistrationOptions.cs (1)
22[JsonRequired]
Protocol\FileOperations\DidChangeWorkspaceFoldersParams.cs (1)
22[JsonRequired]
Protocol\FileOperations\FileCreate.cs (1)
23[JsonRequired]
Protocol\FileOperations\FileDelete.cs (1)
23[JsonRequired]
Protocol\FileOperations\FileOperationFilter.cs (1)
30[JsonRequired]
Protocol\FileOperations\FileOperationPattern.cs (1)
34[JsonRequired]
Protocol\FileOperations\FileOperationRegistrationOptions.cs (1)
22[JsonRequired]
Protocol\FileOperations\FileRename.cs (2)
23[JsonRequired] 31[JsonRequired]
Protocol\FileOperations\FileSystemWatcher.cs (1)
23[JsonRequired]
Protocol\FileOperations\RelativePattern.cs (2)
23[JsonRequired] 30[JsonRequired]
Protocol\FileOperations\RenameFilesParams.cs (1)
23[JsonRequired]
Protocol\FileOperations\WorkspaceFoldersChangeEvent.cs (2)
22[JsonRequired] 29[JsonRequired]
Protocol\FoldingRange.cs (2)
31[JsonRequired] 61[JsonRequired]
Protocol\FoldingRangeParams.cs (1)
23[JsonRequired]
Protocol\FormattingOptions.cs (2)
25[JsonRequired] 32[JsonRequired]
Protocol\Hover.cs (1)
21[JsonRequired]
Protocol\InitializeResult.cs (1)
20[JsonRequired]
Protocol\InlayHint.cs (2)
26[JsonRequired] 41[JsonRequired]
Protocol\InlayHintParams.cs (2)
23[JsonRequired] 30[JsonRequired]
Protocol\InlineValues\InlineValueContext.cs (2)
22[JsonRequired] 30[JsonRequired]
Protocol\InlineValues\InlineValueEvaluatableExpression.cs (1)
30[JsonRequired]
Protocol\InlineValues\InlineValueParams.cs (3)
23[JsonRequired] 30[JsonRequired] 38[JsonRequired]
Protocol\InlineValues\InlineValueText.cs (2)
19[JsonRequired] 26[JsonRequired]
Protocol\InlineValues\InlineValueVariableLookup.cs (2)
29[JsonRequired] 43[JsonRequired]
Protocol\InsertReplaceEdit.cs (3)
22[JsonRequired] 33[JsonRequired] 44[JsonRequired]
Protocol\InsertReplaceRange.cs (2)
18[JsonRequired] 29[JsonRequired]
Protocol\InsertTextModeSupportSetting.cs (1)
20[JsonRequired]
Protocol\Internal\Diagnostics\VSInternalDiagnosticParams.cs (1)
18[JsonRequired]
Protocol\Internal\Diagnostics\VSInternalWorkspaceDiagnosticReport.cs (1)
18[JsonRequired]
Protocol\Internal\VSInternalClipboardContent.cs (2)
18[JsonRequired] 29[JsonRequired]
Protocol\Internal\VSInternalContinueCharacterClass.cs (2)
18[JsonRequired] 25[JsonRequired]
Protocol\Internal\VSInternalContinueCharacterRange.cs (3)
18[JsonRequired] 25[JsonRequired] 32[JsonRequired]
Protocol\Internal\VSInternalContinueCharacterSingle.cs (2)
18[JsonRequired] 25[JsonRequired]
Protocol\Internal\VSInternalHover.cs (1)
31[JsonRequired]
Protocol\Internal\VSInternalInlineCompletionContext.cs (1)
19[JsonRequired]
Protocol\Internal\VSInternalInlineCompletionItem.cs (1)
20[JsonRequired]
Protocol\Internal\VSInternalInlineCompletionList.cs (1)
20[JsonRequired]
Protocol\Internal\VSInternalInlineCompletionRequest.cs (3)
20[JsonRequired] 27[JsonRequired] 34[JsonRequired]
Protocol\Internal\VSInternalReferenceItem.cs (1)
23[JsonRequired]
Protocol\Internal\VSInternalRelatedDocumentParams.cs (1)
19[JsonRequired]
Protocol\Internal\VSInternalRenameOptionSelection.cs (2)
18[JsonRequired] 29[JsonRequired]
Protocol\Internal\VSInternalRenameOptionSupport.cs (2)
18[JsonRequired] 29[JsonRequired]
Protocol\Internal\VSInternalStreamingParams.cs (1)
20[JsonRequired]
Protocol\Internal\VSInternalTextPresentationParams.cs (2)
18[JsonRequired] 29[JsonRequired]
Protocol\Internal\VSInternalUriPresentationParams.cs (2)
19[JsonRequired] 30[JsonRequired]
Protocol\Internal\VSInternalWorkspaceSpellCheckableReport.cs (1)
18[JsonRequired]
Protocol\ITextDocumentParams.cs (1)
19[JsonRequired]
Protocol\ITextDocumentPositionParams.cs (1)
22[JsonRequired]
Protocol\LinkedEditingRanges.cs (1)
24[JsonRequired]
Protocol\LocationLink.cs (3)
37[JsonRequired] 48[JsonRequired] 56[JsonRequired]
Protocol\LogMessageParams.cs (2)
21[JsonRequired] 31[JsonRequired]
Protocol\LogTraceParams.cs (1)
20[JsonRequired]
Protocol\MarkdownClientCapabilities.cs (1)
22[JsonRequired]
Protocol\MarkedString.cs (2)
42[JsonRequired] 54[JsonRequired]
Protocol\Moniker\Moniker.cs (3)
22[JsonRequired] 30[JsonRequired] 37[JsonRequired]
Protocol\Navigation\CallHierarchyIncomingCall.cs (2)
22[JsonRequired] 30[JsonRequired]
Protocol\Navigation\CallHierarchyIncomingCallsParams.cs (1)
23[JsonRequired]
Protocol\Navigation\CallHierarchyItem.cs (5)
23[JsonRequired] 30[JsonRequired] 51[JsonRequired] 60[JsonRequired] 69[JsonRequired]
Protocol\Navigation\CallHierarchyOutgoingCall.cs (2)
22[JsonRequired] 30[JsonRequired]
Protocol\Navigation\CallHierarchyOutgoingCallsParams.cs (1)
23[JsonRequired]
Protocol\Navigation\ReferenceParams.cs (1)
22[JsonRequired]
Protocol\Navigation\TypeHierarchyItem.cs (5)
23[JsonRequired] 30[JsonRequired] 51[JsonRequired] 60[JsonRequired] 69[JsonRequired]
Protocol\Navigation\TypeHierarchySubtypesParams.cs (1)
23[JsonRequired]
Protocol\Navigation\TypeHierarchySupertypesParams.cs (1)
23[JsonRequired]
Protocol\Notebook\DidChangeNotebookDocumentParams.cs (2)
23[JsonRequired] 43[JsonRequired]
Protocol\Notebook\DidCloseNotebookDocumentParams.cs (2)
23[JsonRequired] 31[JsonRequired]
Protocol\Notebook\DidOpenNotebookDocumentParams.cs (2)
22[JsonRequired] 29[JsonRequired]
Protocol\Notebook\DidSaveNotebookDocumentParams.cs (1)
22[JsonRequired]
Protocol\Notebook\ExecutionSummary.cs (1)
23[JsonRequired]
Protocol\Notebook\NotebookCell.cs (2)
27[JsonRequired] 35[JsonRequired]
Protocol\Notebook\NotebookCellArrayChange.cs (2)
22[JsonRequired] 29[JsonRequired]
Protocol\Notebook\NotebookCellTextDocumentFilter.cs (1)
25[JsonRequired]
Protocol\Notebook\NotebookDocument.cs (4)
23[JsonRequired] 31[JsonRequired] 38[JsonRequired] 51[JsonRequired]
Protocol\Notebook\NotebookDocumentChangeCellsStructure.cs (1)
22[JsonRequired]
Protocol\Notebook\NotebookDocumentChangeCellsText.cs (2)
22[JsonRequired] 29[JsonRequired]
Protocol\Notebook\NotebookDocumentClientCapabilities.cs (1)
22[JsonRequired]
Protocol\Notebook\NotebookDocumentSyncCellSelector.cs (1)
19[JsonRequired]
Protocol\Notebook\NotebookDocumentSyncOptions.cs (1)
32[JsonRequired]
Protocol\Notebook\VersionedNotebookDocumentIdentifier.cs (2)
24[JsonRequired] 31[JsonRequired]
Protocol\PrepareRenameParams.cs (2)
21[JsonRequired] 28[JsonRequired]
Protocol\Range.cs (2)
22[JsonRequired] 33[JsonRequired]
Protocol\Registration.cs (2)
20[JsonRequired] 31[JsonRequired]
Protocol\RegistrationParams.cs (1)
20[JsonRequired]
Protocol\RegularExpressionsClientCapabilities.cs (1)
21[JsonRequired]
Protocol\RenameFile.cs (2)
31[JsonRequired] 43[JsonRequired]
Protocol\RenameParams.cs (1)
24[JsonRequired]
Protocol\RenameRange.cs (2)
22[JsonRequired] 33[JsonRequired]
Protocol\ResolveSupportSetting.cs (1)
22[JsonRequired]
Protocol\SelectionRange.cs (2)
22[JsonRequired] 32[JsonRequired]
Protocol\SelectionRangeParams.cs (2)
23[JsonRequired] 30[JsonRequired]
Protocol\SemanticTokens\SemanticTokens.cs (1)
34[JsonRequired]
Protocol\SemanticTokens\SemanticTokensDelta.cs (1)
30[JsonRequired]
Protocol\SemanticTokens\SemanticTokensDeltaPartialResult.cs (1)
22[JsonRequired]
Protocol\SemanticTokens\SemanticTokensEdit.cs (2)
26[JsonRequired] 34[JsonRequired]
Protocol\SemanticTokens\SemanticTokensLegend.cs (2)
22[JsonRequired] 33[JsonRequired]
Protocol\SemanticTokens\SemanticTokensOptions.cs (1)
22[JsonRequired]
Protocol\SemanticTokens\SemanticTokensParams.cs (1)
23[JsonRequired]
Protocol\SemanticTokens\SemanticTokensPartialResult.cs (1)
22[JsonRequired]
Protocol\SemanticTokens\SemanticTokensRangeParams.cs (2)
23[JsonRequired] 30[JsonRequired]
Protocol\SemanticTokens\SemanticTokensSetting.cs (4)
33[JsonRequired] 41[JsonRequired] 49[JsonRequired] 56[JsonRequired]
Protocol\ServerInfo.cs (1)
20[JsonRequired]
Protocol\SetTraceParams.cs (1)
21[JsonRequired]
Protocol\ShowDocumentParams.cs (1)
23[JsonRequired]
Protocol\ShowDocumentResult.cs (1)
22[JsonRequired]
Protocol\ShowMessageParams.cs (2)
21[JsonRequired] 32[JsonRequired]
Protocol\SignatureHelp.cs (1)
25[JsonRequired]
Protocol\StaleRequestSupport.cs (1)
18[JsonRequired]
Protocol\TextDocumentEdit.cs (2)
21[JsonRequired] 38[JsonRequired]
Protocol\TextEdit.cs (1)
20[JsonRequired]
Protocol\UnchangedDocumentDiagnosticReport.cs (1)
33[JsonRequired]
Protocol\Unregistration.cs (2)
20[JsonRequired] 31[JsonRequired]
Protocol\UnregistrationParams.cs (1)
21[JsonRequired]
Protocol\WillSaveTextDocumentParams.cs (2)
21[JsonRequired] 32[JsonRequired]
Protocol\WorkDoneProgressBegin.cs (1)
25[JsonRequired]
Protocol\WorkDoneProgressCancelParams.cs (1)
22[JsonRequired]
Protocol\WorkDoneProgressCreateParams.cs (1)
22[JsonRequired]
Protocol\WorkspaceDiagnosticReport.cs (1)
21[JsonRequired]
Protocol\WorkspaceDiagnosticReportPartialResult.cs (1)
21[JsonRequired]
Protocol\WorkspaceFolder.cs (2)
19[JsonRequired] 26[JsonRequired]
Protocol\WorkspaceFullDocumentDiagnosticReport.cs (2)
24[JsonRequired] 37[JsonRequired]
Protocol\WorkspaceSymbol.cs (3)
22[JsonRequired] 29[JsonRequired] 56[JsonRequired]
Protocol\WorkspaceSymbolLocation.cs (1)
16[JsonRequired]
Protocol\WorkspaceSymbolParams.cs (1)
25[JsonRequired]
Protocol\WorkspaceSymbolResolveSupport.cs (1)
19[JsonRequired]
Protocol\WorkspaceUnchangedDocumentDiagnosticReport.cs (2)
24[JsonRequired] 37[JsonRequired]
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
HandlerTests.cs (2)
300internal record TestRequestTypeOne([property: JsonPropertyName("textDocument"), JsonRequired] TextDocumentIdentifier TextDocumentIdentifier); 302internal record TestRequestTypeTwo([property: JsonPropertyName("textDocument"), JsonRequired] TextDocumentIdentifier TextDocumentIdentifier);
TestConfigurableDocumentHandler.cs (2)
19internal record TestRequestWithDocument([property: JsonPropertyName("textDocument"), JsonRequired] TextDocumentIdentifier TextDocumentIdentifier); 21internal record TestConfigurableResponse([property: JsonPropertyName("response"), JsonRequired] string Response);
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
882[JsonRequired]
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
882[JsonRequired]
3 references to JsonRequired
System.Text.Json (3)
System\Text\Json\Serialization\Attributes\JsonRequiredAttribute.cs (1)
20/// Initializes a new instance of <see cref="JsonRequiredAttribute"/>.
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
404memberInfo.GetCustomAttribute<JsonRequiredAttribute>(inherit: false) != null
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
343/// the value of this property will be mapped from <see cref="JsonRequiredAttribute"/> annotations.