8 references to Clone
Microsoft.AspNetCore.OpenApi (8)
Extensions\OpenApiSchemaExtensions.cs (7)
42
AllOf = schema.AllOf != null ? new List<OpenApiSchema>(schema.AllOf.Select(s => s.
Clone
())) : null,
43
OneOf = schema.OneOf != null ? new List<OpenApiSchema>(schema.OneOf.Select(s => s.
Clone
())) : null,
44
AnyOf = schema.AnyOf != null ? new List<OpenApiSchema>(schema.AnyOf.Select(s => s.
Clone
())) : null,
45
Not = schema.Not?.
Clone
(),
47
Items = schema.Items?.
Clone
(),
51
Properties = schema.Properties?.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.
Clone
()),
55
AdditionalProperties = schema.AdditionalProperties?.
Clone
(),
Transformers\Implementations\OpenApiSchemaReferenceTransformer.cs (1)
36
ResolveReferenceForSchema(schema.
Clone
(), schemasByReference, isTopLevel: true));