You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { ModelMetadataService, UmlBindings, UmlComponent, UmlConfig } from '@derdeka/loopback4-extension-nomnoml';
import * as AllModels from './models';
Discussed with @bajtos, he mentioned #2230 covers the requirement of this issue. I've added more information based on our conversation: #2230 (comment).
@derdeka, please try out the workaround and continue any discussion over #2230. I'd like to close this issue as duplicate. Thanks!
Steps to reproduce
I did some experiments of uml diagram generation with
nomnoml
as anlb4 extension
. The output of an@get
endpoint is an svg image.AFAIK there is not way to set an content-type as
strong-remoting
is always settingtext/plain
!?:https://github.com/strongloop/strong-remoting/blob/33fbd72fb46035f707c3c62dce6b36ab075fb61e/lib/http-context.js#L494-L498
Current Behavior
Content-Type is always
application/json
ortext/plain
.Expected Behavior
Need Content-Type
image/svg+xml
for my use case.Link to reproduction sandbox
https://github.com/derdeka/loopback4-extensions/blob/9d2ac1d877e2f8955a6bbcd9c9af3ec485f62d2e/packages/nomnoml/src/controllers/uml.controller.ts#L22
in your application.ts:
Additional Information
Maybe related to #2752 and #436
The text was updated successfully, but these errors were encountered: