Skip to content

Commit 9d48ab7

Browse files
committed
Rename IDomainObject => INestSerializable
1 parent 9aeffb9 commit 9d48ab7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Nest/Domain/ICustomJson.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
namespace Nest
44
{
5-
//If an object implements this then it can handle its own json representation
5+
// If an object implements this then it can handle its own json representation
66
public interface ICustomJson
77
{
88
object GetCustomJson();
99
}
1010

11-
public interface IDomainObject
12-
{
13-
14-
}
11+
// Any object that implements this will automatically be added to the serialization contract
12+
public interface INestSerializable { }
1513
}

src/Nest/Resolvers/ElasticContractResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected override IList<JsonProperty> CreateProperties(Type type, MemberSeriali
122122
defaultProperties = PropertiesOf<IInnerHitsContainer>(type, memberSerialization, defaultProperties, lookup);
123123
//defaultProperties = PropertiesOf<IGlobalInnerHit>(type, memberSerialization, defaultProperties, lookup);
124124
defaultProperties = PropertiesOf<IInnerHits>(type, memberSerialization, defaultProperties, lookup);
125-
defaultProperties = PropertiesOf<IDomainObject>(type, memberSerialization, defaultProperties, lookup);
125+
defaultProperties = PropertiesOf<INestSerializable>(type, memberSerialization, defaultProperties, lookup);
126126
return defaultProperties;
127127
}
128128

0 commit comments

Comments
 (0)