As I mentioned here, I tried to switch to the other converter, but ran into a showstopper of a bug.
So far, the only little issue I have here is this, which I'd like to resolve.
The code:
/** A global template that can be referenced by unique key. */
export type NamedTemplate = Record<TemplateKey, InlineTemplate>;
/** Template property definition in the Style. */
export interface TopLevelTemplate {
templates: NamedTemplate;
}
Here's what it currently generates:
"NamedTemplate": {
"description": "A global template that can be referenced by unique key.",
"type": "object"
},
Here's what it should (I think?):
"NamedTemplate": {
"description": "A global template that can be referenced by unique key.",
"type": "object",
"$ref": "#/definitions/InlineTemplate"
},
EDIT: maybe a dup of #476 and #337?
As I mentioned here, I tried to switch to the other converter, but ran into a showstopper of a bug.
So far, the only little issue I have here is this, which I'd like to resolve.
The code:
Here's what it currently generates:
Here's what it should (I think?):
Edit: actually, output needs to use a patternProperty.
So why is the ref not added?
Is there anything I can do on my end to get this to work correctly?