-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
434 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...otNetCore.OpenApi/JsonApiObjects/RelationshipData/NullableToOneRelationshipRequestData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using JetBrains.Annotations; | ||
using JsonApiDotNetCore.OpenApi.JsonApiObjects.ResourceObjects; | ||
using JsonApiDotNetCore.Resources; | ||
|
||
namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.RelationshipData | ||
{ | ||
[UsedImplicitly(ImplicitUseTargetFlags.Members)] | ||
internal sealed class NullableToOneRelationshipRequestData<TResource> : SingleData<ResourceIdentifierObject<TResource>?> | ||
where TResource : IIdentifiable | ||
{ | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...tNetCore.OpenApi/JsonApiObjects/RelationshipData/NullableToOneRelationshipResponseData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using JetBrains.Annotations; | ||
using JsonApiDotNetCore.OpenApi.JsonApiObjects.Links; | ||
using JsonApiDotNetCore.OpenApi.JsonApiObjects.ResourceObjects; | ||
using JsonApiDotNetCore.Resources; | ||
|
||
namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.RelationshipData | ||
{ | ||
[UsedImplicitly(ImplicitUseTargetFlags.Members)] | ||
internal sealed class NullableToOneRelationshipResponseData<TResource> : SingleData<ResourceIdentifierObject<TResource>?> | ||
where TResource : IIdentifiable | ||
{ | ||
[Required] | ||
public LinksInRelationshipObject Links { get; set; } = null!; | ||
|
||
public IDictionary<string, object> Meta { get; set; } = null!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.