diff --git a/src/MakingSense.AspNetCore.HypermediaApi/Metadata/ActionRelationAttribute.cs b/src/MakingSense.AspNetCore.HypermediaApi/Metadata/ActionRelationAttribute.cs index be6a21c..3f13035 100644 --- a/src/MakingSense.AspNetCore.HypermediaApi/Metadata/ActionRelationAttribute.cs +++ b/src/MakingSense.AspNetCore.HypermediaApi/Metadata/ActionRelationAttribute.cs @@ -90,9 +90,11 @@ public void OnResultExecuting([NotNull]ResultExecutingContext context) if (schemaAttribute != null) { + var keepUnquoted = context.HttpContext.Request.Query.ContainsKey("keep-unquoted-profile"); + context.HttpContext.Response.OnStarting((o) => { - AddProfileToContentType(context, schemaAttribute); + AddProfileToContentType(context, schemaAttribute, keepUnquoted); return Task.FromResult(0); }, null); }