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