Browse Source

Ignore modules for json serializer

pull/333/head
Ionite 1 year ago
parent
commit
d57a11a689
No known key found for this signature in database
  1. 2
      StabilityMatrix.Avalonia/ViewModels/Inference/StackEditableCardViewModel.cs

2
StabilityMatrix.Avalonia/ViewModels/Inference/StackEditableCardViewModel.cs

@ -31,12 +31,14 @@ public partial class StackEditableCardViewModel : StackViewModelBase
/// <summary> /// <summary>
/// Available module types for user creation /// Available module types for user creation
/// </summary> /// </summary>
[JsonIgnore]
public IReadOnlyList<Type> AvailableModules { get; set; } = Array.Empty<Type>(); public IReadOnlyList<Type> AvailableModules { get; set; } = Array.Empty<Type>();
/// <summary> /// <summary>
/// Default modules that are used when no modules are loaded /// Default modules that are used when no modules are loaded
/// This is a subset of <see cref="AvailableModules"/> /// This is a subset of <see cref="AvailableModules"/>
/// </summary> /// </summary>
[JsonIgnore]
public IReadOnlyList<Type> DefaultModules { get; set; } = Array.Empty<Type>(); public IReadOnlyList<Type> DefaultModules { get; set; } = Array.Empty<Type>();
/// <inheritdoc /> /// <inheritdoc />

Loading…
Cancel
Save