Skip to content

Wrong types for references #64

@max-cross

Description

@max-cross

CS always sends references as an array of entries. It means that all references must be like arrays, and empty arrays in case if reference is not specified. Even if this field is not mandatory, it will be an empty array.

{
  someEntryReference: EntryModel[]
}

But for some reason TSGen gives you:

{
  someEntryReference?: EntryModel
}

Looks like a bug or not documented behavior.

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