We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d08e490 + 1e2d367 commit b3ad8a8Copy full SHA for b3ad8a8
_docs/schema/schemagen/examples/refiner.md
@@ -28,7 +28,7 @@ internal class NullabilityRefiner : ISchemaRefiner
28
public void Run(SchemaGeneratorContextBase context)
29
{
30
// find the type keyword
31
- var typeIntent = context.Intents.OfType<TypeIntent>().Firs();
+ var typeIntent = context.Intents.OfType<TypeIntent>().First();
32
// determine if the property has an override attribute
33
var nullableAttribute = context.Attributes.OfType<NullableAttribute>().FirstOrDefault();
34
var nullabilityOverride = nullableAttribute?.IsNullable;
0 commit comments