Class ResourceIdentityRequirements
- Namespace
- JsonApiDotNetCore.Serialization.Request.Adapters
- Assembly
- JsonApiDotNetCore.dll
Defines requirements to validate a ResourceIdentity instance against.
[PublicAPI]
public sealed class ResourceIdentityRequirements
- Inheritance
-
ResourceIdentityRequirements
- Inherited Members
Properties
EvaluateAllowLid
When not null, provides a callback to indicate whether the "lid" element can be used instead of the "id" element. Defaults to false.
public Func<ResourceType, bool>? EvaluateAllowLid { get; init; }
Property Value
EvaluateIdConstraint
When not null, provides a callback to indicate the presence or absence of the "id" element.
public Func<ResourceType, JsonElementConstraint?>? EvaluateIdConstraint { get; init; }
Property Value
IdValue
When not null, indicates what the value of the "id" element must be.
public string? IdValue { get; init; }
Property Value
LidValue
When not null, indicates what the value of the "lid" element must be.
public string? LidValue { get; init; }
Property Value
RelationshipName
When not null, indicates the name of the relationship to use in error messages.
public string? RelationshipName { get; init; }
Property Value
ResourceType
When not null, indicates that the "type" element must be compatible with the specified resource type.
public ResourceType? ResourceType { get; init; }