public class User
{
public long UserId { get; set; }//For reasons of the DBA's we cannot change this easily
public string Description { get; set; }
}
Using ApiResource with 'WithId("UserId")' and the JsonApiSerializer captures the Id for the schema.@default ( in Swashbuckler), but the value is outputted without the quotation marks mandated by Json-Api, as seen here: http://jsonapi.org/format/#document-resource-objects.
Using ApiResource with 'WithId("UserId")' and the JsonApiSerializer captures the Id for the schema.@default ( in Swashbuckler), but the value is outputted without the quotation marks mandated by Json-Api, as seen here: http://jsonapi.org/format/#document-resource-objects.
what we get is the following json:
I hope my explanation is clear enough, and if I get the time I will try and fix it myself and make a pull-request.