@@ -56,7 +56,7 @@ public string ToArtifact(object value, PropertyType propertyType, ICollection<Ar
56
56
return null ;
57
57
58
58
// get all the content types used in block editor items
59
- var allContentTypes = blockEditorValue . Data . Select ( x => x . ContentTypeKey )
59
+ var allContentTypes = blockEditorValue . Content . Select ( x => x . ContentTypeKey )
60
60
. Distinct ( )
61
61
. ToDictionary ( a => a , a =>
62
62
{
@@ -77,7 +77,7 @@ public string ToArtifact(object value, PropertyType propertyType, ICollection<Ar
77
77
dependencies . Add ( new ArtifactDependency ( contentType . GetUdi ( ) , false , ArtifactDependencyMode . Match ) ) ;
78
78
}
79
79
80
- foreach ( var block in blockEditorValue . Data )
80
+ foreach ( var block in blockEditorValue . Content )
81
81
{
82
82
var contentType = allContentTypes [ block . ContentTypeKey ] ;
83
83
@@ -126,7 +126,7 @@ public object FromArtifact(string value, PropertyType propertyType, object curre
126
126
if ( blockEditorValue == null )
127
127
return value ;
128
128
129
- var allContentTypes = blockEditorValue . Data . Select ( x => x . ContentTypeKey )
129
+ var allContentTypes = blockEditorValue . Content . Select ( x => x . ContentTypeKey )
130
130
. Distinct ( )
131
131
. ToDictionary ( a => a , a =>
132
132
{
@@ -141,7 +141,7 @@ public object FromArtifact(string value, PropertyType propertyType, object curre
141
141
throw new InvalidOperationException ( $ "Could not resolve these content types for the Block Editor property: { string . Join ( "," , allContentTypes . Where ( x => x . Value == null ) . Select ( x => x . Key ) ) } ") ;
142
142
}
143
143
144
- foreach ( var block in blockEditorValue . Data )
144
+ foreach ( var block in blockEditorValue . Content )
145
145
{
146
146
var contentType = allContentTypes [ block . ContentTypeKey ] ;
147
147
@@ -194,11 +194,11 @@ public object FromArtifact(string value, PropertyType propertyType, object curre
194
194
/// "layout": {
195
195
/// "Umbraco.BlockList": [
196
196
/// {
197
- /// "udi ": "umb://element/b401bb800a4a48f79786d5079bc47718"
197
+ /// "contentUdi ": "umb://element/b401bb800a4a48f79786d5079bc47718"
198
198
/// }
199
199
/// ]
200
200
/// },
201
- /// "data ": [
201
+ /// "contentData ": [
202
202
/// {
203
203
/// "contentTypeKey": "5fe26fff-7163-4805-9eca-960b1f106bb9",
204
204
/// "udi": "umb://element/b401bb800a4a48f79786d5079bc47718",
@@ -222,14 +222,15 @@ public class BlockEditorValue
222
222
/// <summary>
223
223
/// This contains all the blocks created in the block editor.
224
224
/// </summary>
225
- [ JsonProperty ( "data " ) ]
226
- public IEnumerable < Block > Data { get ; set ; }
225
+ [ JsonProperty ( "contentData " ) ]
226
+ public IEnumerable < Block > Content { get ; set ; }
227
227
}
228
228
229
229
public class Block
230
230
{
231
231
[ JsonProperty ( "contentTypeKey" ) ]
232
232
public string ContentTypeKey { get ; set ; }
233
+
233
234
[ JsonProperty ( "udi" ) ]
234
235
public string Udi { get ; set ; }
235
236
0 commit comments