Skip to content

allOf in schema is not merged in Typescript output #1257

Description

@ping-liu-lendi

Can someone help please:

I am using quicktype to generate typescript types from json schema. It appears that allOf is not recognised. For example, output of below creates an interface without any attributes from AmountAndFrequency. How can I resolve it?

"Income": { "allOf": [ { "$ref": "#/definitions/AmountAndFrequency" }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "GrossSalaryAmount", "Overtime" ] }, "description": { "type": "string" } }, "additionalProperties": false, "required": [ "type" ] } ] },

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions