Skip to content

Bug: Infer type if type is not specified #14

Closed
@Himenon

Description

@Himenon

Steps To Reproduce

It is below.

The current behavior

Build Error

The expected behavior

components:
  schemas:
    Item:          # -> type Item =  { description: any }
      required:
        description
components:
  schemas:
    Items:          # -> type Items =  "a" | "b" | "c";
      enum: [a, b, c]
components:
  schemas:
    Obj:          # -> type Obj =  "a" | "b" | "c";
      properties:
        filed:
components:
  schemas:
    Obj:          # -> interface Obj { field: string }
      properties:
        filed:
          type: string
components:
  schemas:
    List:          # -> type List = string[]
      items:
        type: string

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions