Playground - @himenon/openapi-typescript-code-generator@0.19.1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
openapi: 3.0.3
info:
  version: 1.0.0
  title: DEMO
  description: demo spec
  license:
    name: MIT
servers:
  - url: "http://dev.api.test.domain/"
    description: Development Environment
  - url: "https://api.test.domain/"
    description: Production Environment
components:
  schemas:
    Author:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
        name:
          type: string
          description: author name
    Book:
      type: object
      description: Book Model
      required:
        - title
        - author
        - ISBN
        - publishAt
        - updatedAt
      properties:
Enter to Rename, Shift+Enter to Preview
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 
// Generated by @himenon/openapi-typescript-code-generator v0.19.1
// 
// OpenApi : 3.0.3
// 
// License  : MIT
// 
export namespace Schemas {
    export interface Author {
        id: string;
        /** author name */
        name: string;
    }
    /** Book Model */
    export interface Book {
        title: string;
        author: Schemas.Author;
        ISBN: string;
        publishAt: string;
        updatedAt: string;
    }
}
export namespace Responses {
    /** Get Books */
    export namespace Books {
        export interface Content {
            "application/json": {
                books: Schemas.Book[];
            };
        }
    }
}
export type Response$getBooks$Status$200 = Responses.Books.Content;
export interface Parameter$searchBooks {
    filter?: {
Enter to Rename, Shift+Enter to Preview