Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Infer type if type is not specified #14

Closed
Himenon opened this issue Jan 31, 2021 · 0 comments
Closed

Bug: Infer type if type is not specified #14

Himenon opened this issue Jan 31, 2021 · 0 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@Himenon
Copy link
Owner

Himenon commented Jan 31, 2021

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
@Himenon Himenon added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Jan 31, 2021
Himenon added a commit that referenced this issue Feb 1, 2021
BREAKING_CHANGE

* Remove MapLike -> use Record
* Corresponds to the case where a character string such as _ or - is included
* Closes: #12 #13 #14 #15
@Himenon Himenon closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

1 participant