Skip to content

Commit bddedaa

Browse files
committed
refactor(getType): move from openapi3 to core/utils
Signed-off-by: J3m5 <[email protected]>
1 parent 10fe9b1 commit bddedaa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/openapi3/getType.ts renamed to src/core/utils/getType.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import inflection from "inflection";
22
import type { FieldType } from "../Field.js";
33

4-
export default function getType(
5-
openApiType: string,
6-
format?: string,
7-
): FieldType {
4+
export function getType(openApiType: string, format?: string): FieldType {
85
if (format) {
96
switch (format) {
107
case "int32":

0 commit comments

Comments
 (0)