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

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.1.0
info:
  version: 1.0.0
  title: ref.access
  description: Library test schema
  license:
    name: MIT
servers:
  - url: "http://dev.ref.access/"
    description: Development Environment
  - url: "https://ref.access/"
    description: Production Environment
tags:
  - name: test
components:
  schemas:
    Book:
      type: object
      required:
        - metadata
      properties:
        author:
          type: object
          properties:
            name:
              type: string
            age:
              type: string
        publisher:
          type: object
          properties:
            name:
              type: String
            address:
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 v1.0.9
// 
// OpenApi : 3.1.0
// 
// License  : MIT
// 
export namespace Schemas {
    export interface Book {
        author?: {
            name?: string;
            age?: string;
        };
        publisher?: {
            name?: any;
            address?: string;
        };
        metadata: {
            description: string;
        };
    }
    export type Author = {
        name?: string;
        age?: string;
    };
    export type Publisher = {
        name?: any;
        address?: string;
    };
}
export interface Parameter$getBook {
    /** Book ID */
    id: string;
}
export interface Response$getBook$Status$200 {