• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

thoughtspot / graph-to-openapi / #246

28 Mar 2025 07:26AM UTC coverage: 28.36% (-64.6%) from 92.989%
#246

push

web-flow
Merge pull request #23 from thoughtspot/mnk-blr-patch-1

Create sonar-project.properties

82 of 338 branches covered (24.26%)

Branch coverage included in aggregate %.

110 of 339 relevant lines covered (32.45%)

251.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/utils.ts
1
export function mapToPrimitive(type: string) {
×
2
    const formatMap: Record<string, any> = {
×
3
        Int: {
4
            type: 'integer',
5
            format: 'int32',
6
        },
7
        Float: {
8
            type: 'number',
9
            format: 'float',
10
        },
11
        String: {
12
            type: 'string',
13
        },
14
        Boolean: {
15
            type: 'boolean',
16
        },
17
        ID: {
18
            type: 'string',
19
        },
20
        StringBooleanNumber: {
21
            anyOf: [
22
                {
23
                    type: 'string',
24
                },
25
                {
26
                    type: 'boolean',
27
                },
28
                {
29
                    type: 'number',
30
                },
31
            ],
32
        },
33
    };
34

35
    return formatMap[type];
×
36
}
37

38
export function mapToRef(type: string) {
×
39
    return `#/components/schemas/${type}`;
×
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc