Skip to content

always optional type #68

Closed
Closed
@alex-shatalov

Description

@alex-shatalov

Hi, i have schema

  EventsList:
    properties:
      rows:
        items:
          $ref: '#/definitions/EventRow'
        type: array
        x-omitempty: false
      items:
        items:
          $ref: '#/definitions/Event'
        type: array
        x-omitempty: false
      total:
        format: int64
        type: integer
        x-omitempty: false
      tableFormat:
        $ref: '#/definitions/TableFormat'
        x-omitempty: false
    type: object

and i am getting

export interface EventsList {
  rows?: EventRow[];
  items?: Event[];
  total?: number;
  tableFormat?: TableFormat;
}

is it somehow possible to get strick type? we also try x-nullable: false and it works, but x-omitempty no.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions