Skip to content

chore: Fix nullable warnings, add XML docs, suppress vendored warnings #46

chore: Fix nullable warnings, add XML docs, suppress vendored warnings

chore: Fix nullable warnings, add XML docs, suppress vendored warnings #46

Triggered via push March 20, 2026 14:02
Status Failure
Total duration 1m 0s
Artifacts

dotnet.yml

on: push
Trimming Check
40s
Trimming Check
Release
Release
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
Publish
Process completed with exit code 1.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Parser.cs#L111
Dereference of a possibly null reference.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/SyntaxValueProviderExtensions.cs#L113
Argument of type 'Span<AttributeData>' cannot be used for parameter 'scratchBuffer' of type 'Span<AttributeData?>' in 'ValueListBuilder<AttributeData>.ValueListBuilder(Span<AttributeData?> scratchBuffer)' due to differences in the nullability of reference types.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/SyntaxValueProviderExtensions.cs#L76
Argument of type 'Span<T>' cannot be used for parameter 'scratchBuffer' of type 'Span<T?>' in 'ValueListBuilder<T>.ValueListBuilder(Span<T?> scratchBuffer)' due to differences in the nullability of reference types.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/JsonSourceGenerator.Roslyn4.0.cs#L99
Possible null reference argument for parameter 'knownSymbols' in 'Parser.Parser(KnownTypeSymbols knownSymbols)'.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/ValueEqualityImmutableDictionaryHelperExtensions.cs#L12
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'ImmutableDictionary.ToImmutableDictionary<TSource, TKey, TValue>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TValue>)'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/ValueEqualityImmutableDictionaryHelperExtensions.cs#L14
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'ImmutableDictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/ValueEqualityImmutableDictionary.cs#L6
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'ImmutableDictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.
Publish: src/libs/CSharpToJsonSchema.Generators/JsonGen/Base/ValueEqualityImmutableDictionary.cs#L6
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'ImmutableDictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.