@@ -15,19 +15,22 @@ public override void Write(Utf8JsonWriter writer, IEnumerable<TypeFieldConfigura
1515 {
1616 writer . WriteStartObject ( ) ;
1717
18- foreach ( var contentTypeFieldConfiguration in value . Where ( x => x . ConfigurationType == ConfigurationType . ContentType ) )
18+ writer . WriteBoolean ( "useTypedFieldNames" , true ) ;
19+ writer . WriteString ( "label" , "AlloyExternalData" ) ;
20+
21+ writer . WriteStartArray ( "languages" ) ;
22+ foreach ( var language in SourceConfigurationModel . GetLanguages ( ) )
1923 {
20- writer . WriteBoolean ( "useTypedFieldNames" , true ) ;
21- writer . WriteString ( "label" , contentTypeFieldConfiguration . TypeName ) ;
24+ writer . WriteStringValue ( language ) ;
25+ }
26+ writer . WriteEndArray ( ) ;
2227
23- writer . WriteStartArray ( "languages" ) ;
24- foreach ( var language in SourceConfigurationModel . GetLanguages ( ) )
25- {
26- writer . WriteStringValue ( language ) ;
27- }
28- writer . WriteEndArray ( ) ;
28+ writer . WriteStartObject ( "contentTypes" ) ;
29+ foreach ( var contentTypeFieldConfiguration in value . Where ( x => x . ConfigurationType == ConfigurationType . ContentType ) )
30+ {
31+
32+
2933
30- writer . WriteStartObject ( "contentTypes" ) ;
3134 writer . WriteStartObject ( contentTypeFieldConfiguration . TypeName ) ;
3235
3336 writer . WriteStartArray ( "contentType" ) ;
@@ -52,8 +55,8 @@ public override void Write(Utf8JsonWriter writer, IEnumerable<TypeFieldConfigura
5255 writer . WriteEndObject ( ) ;
5356
5457 writer . WriteEndObject ( ) ;
55- writer . WriteEndObject ( ) ;
5658 }
59+ writer . WriteEndObject ( ) ;
5760
5861 writer . WriteStartObject ( "propertyTypes" ) ;
5962 foreach ( var contentTypeFieldConfiguration in value . Where ( x => x . ConfigurationType == ConfigurationType . PropertyType ) )
0 commit comments