Skip to content

Commit

Permalink
fix: type number is parse schema any
Browse files Browse the repository at this point in the history
  • Loading branch information
mao committed Mar 9, 2023
1 parent 9e309f3 commit 687546b
Show file tree
Hide file tree
Showing 21 changed files with 89 additions and 11 deletions.
7 changes: 7 additions & 0 deletions packages/apipgen-parser-swagger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @apipgen/swag-parser

## 0.1.6

### Patch Changes

- fix: type number is parse schema any
- [email protected]

## 0.1.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/apipgen-parser-swagger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apipgen/swag-parser",
"version": "0.1.5",
"version": "0.1.6",
"description": "",
"author": "",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion packages/apipgen-parser-swagger/src/parser/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function parseSchemaType(propertie: Schema): string {
if (isArray(propertie.type))
return uniq(propertie.type.map(type => parseSchemaType({ type }))).join(' | ')

if (['integer', 'long', 'float', 'byte', 'TypesLong'].includes(propertie.type))
if (['integer', 'long', 'float', 'byte', 'TypesLong', 'number'].includes(propertie.type))
return 'number'

if (['byte', 'binary', 'date', 'dateTime', 'password', 'TypesString', 'string'].includes(propertie.type))
Expand Down
7 changes: 7 additions & 0 deletions packages/apipgen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# apipgen

## 0.3.8

### Patch Changes

- [email protected]
- [email protected]

## 0.3.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/apipgen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen",
"version": "0.3.7",
"version": "0.3.8",
"description": "Generator Api",
"author": "Hairy",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-axios-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-js

## 0.1.7

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.1.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-axios-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-axios-js",
"version": "0.1.6",
"version": "0.1.7",
"description": "",
"author": "",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-axios-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-axios-ts

## 0.1.7

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.1.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-axios-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-axios-ts",
"version": "0.1.6",
"version": "0.1.7",
"description": "",
"author": "",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-fetch-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-fetch-js

## 0.1.8

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.1.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-fetch-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-fetch-js",
"version": "0.1.7",
"version": "0.1.8",
"description": "",
"author": "",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-fetch-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-fetch-ts

## 0.1.7

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.1.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-fetch-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-fetch-ts",
"version": "0.1.6",
"version": "0.1.7",
"description": "",
"author": "",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-got-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-got-js

## 0.0.4

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-got-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-got-js",
"version": "0.0.3",
"version": "0.0.4",
"description": "",
"author": "",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-got-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-got-ts

## 0.0.4

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-got-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-got-ts",
"version": "0.0.3",
"version": "0.0.4",
"description": "",
"author": "",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-ky-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-ky-js

## 0.0.8

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-ky-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-ky-js",
"version": "0.0.7",
"version": "0.0.8",
"description": "",
"author": "",
"license": "ISC",
Expand Down
8 changes: 8 additions & 0 deletions packages/swag-ky-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# apipgen-swag-ts-ky

## 0.0.8

### Patch Changes

- Updated dependencies
- @apipgen/swag-parser@0.1.6
- [email protected]

## 0.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/swag-ky-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apipgen-swag-ky-ts",
"version": "0.0.7",
"version": "0.0.8",
"description": "",
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 687546b

Please sign in to comment.