File tree Expand file tree Collapse file tree
OnTopic.Editor.AspNetCore.Attributes/FileListAttribute
OnTopic.Editor.AspNetCore/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ public FileListAttributeViewModel(
6262 /// While the <i>relative</i> file path can be retrieved from <see cref="FileListAttributeDescriptorViewModel.Path"
6363 /// />, that doesn't include the base path of the web application. The <see cref="AbsolutePath"/> addresses this.
6464 /// </remarks>
65- [ Required , NotNull , DisallowNull ]
66- public string ? AbsolutePath { get ; set ; }
65+ [ Required ]
66+ public string AbsolutePath { get ; set ; } = default ! ;
6767
6868 } // Class
6969} // Namespace
Original file line number Diff line number Diff line change @@ -43,35 +43,23 @@ public AttributeBindingModel(string editorType) {
4343 /// <summary>
4444 /// The unique name associated with the specified attribute.
4545 /// </summary>
46- [ NotNull , DisallowNull ]
47- public string ? Key {
48- get ;
49- init ;
50- }
46+ public string Key { get ; init ; } = default ! ;
5147
5248 /*==========================================================================================================================
5349 | EDITOR TYPE
5450 \-------------------------------------------------------------------------------------------------------------------------*/
5551 /// <summary>
5652 /// The editor type associated with the attribute.
5753 /// </summary>
58- [ NotNull , DisallowNull ]
59- public string ? EditorType {
60- get ;
61- init ;
62- }
54+ public string EditorType { get ; init ; } = default ! ;
6355
6456 /*==========================================================================================================================
6557 | VALUE
6658 \-------------------------------------------------------------------------------------------------------------------------*/
6759 /// <summary>
6860 /// The value associated with the attribute.
6961 /// </summary>
70- [ NotNull , DisallowNull ]
71- public string ? Value {
72- get ;
73- init ;
74- }
62+ public string Value { get ; init ; } = default ! ;
7563
7664 /*==========================================================================================================================
7765 | GET VALUE
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ public abstract class ClientResource {
2222 /// <summary>
2323 /// Gets or sets the URL associated with the client-side resource.
2424 /// </summary>
25- [ NotNull , DisallowNull ]
26- public Uri ? Url { get ; set ; }
25+ public Uri Url { get ; set ; } = default ! ;
2726
2827 }
2928}
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ public record EditorViewModel {
2323 /// The <see cref="EditingTopicViewModel"/> representing the core properties of the currently selected <see
2424 /// cref="Topic"/>.
2525 /// </summary>
26- [ NotNull , DisallowNull ]
27- public EditingTopicViewModel ? Topic { get ; init ; }
26+ public EditingTopicViewModel ? Topic { get ; init ; } = default ! ;
2827
2928 /*==========================================================================================================================
3029 | CONTENT TYPE DESCRIPTOR
@@ -33,8 +32,7 @@ public record EditorViewModel {
3332 /// The <see cref="ContentTypeDescriptorViewModel"/> representing the core properties of the <see cref="Topic"/>'s <see
3433 /// cref="ContentTypeDescriptor"/>.
3534 /// </summary>
36- [ NotNull , DisallowNull ]
37- public ContentTypeDescriptorViewModel ? ContentTypeDescriptor { get ; init ; }
35+ public ContentTypeDescriptorViewModel ContentTypeDescriptor { get ; init ; } = default ! ;
3836
3937 /*==========================================================================================================================
4038 | IS MODAL?
Original file line number Diff line number Diff line change @@ -64,17 +64,17 @@ public record AttributeDescriptorViewModel: CoreTopicViewModel {
6464 /// The <see cref="EditorType"/> corresponds to the <see cref="AttributeDescriptor"/> subtype name, such as <c>
6565 /// BooleanAttributeDescriptor</c>. This can be used by the editor to determine the appropriate view component to display.
6666 /// </remarks>
67- [ Required , NotNull , DisallowNull ]
68- public string ? EditorType { get ; init ; }
67+ [ Required ]
68+ public string EditorType { get ; init ; } = default ! ;
6969
7070 /*==========================================================================================================================
7171 | PROPERTY: DISPLAY GROUP
7272 \-------------------------------------------------------------------------------------------------------------------------*/
7373 /// <summary>
7474 /// Determines what group of attributes to associate the current attribute with.
7575 /// </summary>
76- [ Required , NotNull , DisallowNull ]
77- public string ? DisplayGroup { get ; init ; }
76+ [ Required ]
77+ public string DisplayGroup { get ; init ; } = default ! ;
7878
7979 /*==========================================================================================================================
8080 | PROPERTY: IS REQUIRED?
You can’t perform that action at this time.
0 commit comments