Skip to content

enum is not generated properly #32

@rattkin

Description

@rattkin

Hi I looked at past issues and saw that enums should now be implemented... Also saw some manual types, but where do I put them? all the TI files are regularly overwritten

This is the openapi fragment:

Address:
    description: Address data for shipping or billing
    type: object
    properties:

        AddressTypeID:
            type: string
            enum:
                - BA
                - EX
            description: BA - Billing Address, EX - Expedition

This is the output from ts-interface-builder:

/**
 * This module was automatically generated by `ts-interface-builder`
 */
import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes

export const Address = t.iface([], {
  "AddressTypeID": t.enumlit("Address", "AddressTypeID"),
});

const exportedTypeSuite: t.ITypeSuite = {
  Address,
};
export default exportedTypeSuite;

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