Skip to content

Commit 95094c3

Browse files
chore: nix
1 parent aad061b commit 95094c3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/openapi-generator/test/openapi/openapiSchemaTest.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ test('numeric constraints are properly mapped', () => {
1616
description: 'A number with constraints',
1717
tags: [],
1818
source: [],
19-
problems: []
20-
}
19+
problems: [],
20+
},
2121
};
2222

2323
const result = schemaToOpenAPI(schema) as OpenAPIV3.SchemaObject;
@@ -45,8 +45,8 @@ test('exclusive numeric constraints are properly mapped', () => {
4545
description: 'A number with exclusive constraints',
4646
tags: [],
4747
source: [],
48-
problems: []
49-
}
48+
problems: [],
49+
},
5050
};
5151

5252
const result = schemaToOpenAPI(schema) as OpenAPIV3.SchemaObject;
@@ -68,7 +68,7 @@ test('string-encoded numeric types are properly mapped', () => {
6868
const schema: Schema = {
6969
type: 'string',
7070
format: 'number',
71-
decodedType: 'number'
71+
decodedType: 'number',
7272
};
7373

7474
const result = schemaToOpenAPI(schema) as OpenAPIV3.SchemaObject;
@@ -83,7 +83,7 @@ test('string-encoded integer types are properly mapped', () => {
8383
const schema: Schema = {
8484
type: 'string',
8585
format: 'integer',
86-
decodedType: 'number'
86+
decodedType: 'number',
8787
};
8888

8989
const result = schemaToOpenAPI(schema) as OpenAPIV3.SchemaObject;
@@ -98,7 +98,7 @@ test('BigInt types are properly mapped', () => {
9898
const schema: Schema = {
9999
type: 'string',
100100
format: 'number',
101-
decodedType: 'bigint'
101+
decodedType: 'bigint',
102102
};
103103

104104
const result = schemaToOpenAPI(schema) as OpenAPIV3.SchemaObject;
@@ -116,7 +116,7 @@ test('BigInt types with constraints are properly mapped', () => {
116116
format: 'number',
117117
decodedType: 'bigint',
118118
minimum: 0,
119-
maximum: 1000000000000000000
119+
maximum: 1000000000000000000,
120120
};
121121

122122
const result = schemaToOpenAPI(schema) as OpenAPIV3.SchemaObject;

0 commit comments

Comments
 (0)