Skip to content

Commit 1c56bca

Browse files
committed
fix: type/format mismatch in test data
1 parent 452fa51 commit 1c56bca

12 files changed

+72
-48
lines changed

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
"type": "object"
7474
},
7575
"ODataCountResponse": {
76-
"format": "int32",
77-
"type": "integer"
76+
"format": "int64",
77+
"type": "number"
7878
},
7979
"ReferenceUpdate": {
8080
"type": "object",
@@ -112,14 +112,16 @@
112112
"in": "query",
113113
"name": "$top",
114114
"description": "Show only the first n items",
115-
"type": "integer",
115+
"type": "number",
116+
"format": "int64",
116117
"minimum": 0
117118
},
118119
"skip": {
119120
"in": "query",
120121
"name": "$skip",
121122
"description": "Skip the first n items",
122-
"type": "integer",
123+
"type": "number",
124+
"format": "int64",
123125
"minimum": 0
124126
},
125127
"count": {

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ definitions:
5050
description: The structure of this object is service-specific
5151
type: object
5252
ODataCountResponse:
53-
format: int32
54-
type: integer
53+
format: int64
54+
type: number
5555
ReferenceUpdate:
5656
type: object
5757
properties:
@@ -77,13 +77,15 @@ parameters:
7777
in: query
7878
name: $top
7979
description: Show only the first n items
80-
type: integer
80+
type: number
81+
format: int64
8182
minimum: 0
8283
skip:
8384
in: query
8485
name: $skip
8586
description: Skip the first n items
86-
type: integer
87+
type: number
88+
format: int64
8789
minimum: 0
8890
count:
8991
in: query

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
"description": "The structure of this object is service-specific"
7878
},
7979
"ODataCountResponse": {
80-
"type": "integer",
81-
"format": "int32"
80+
"type": "number",
81+
"format": "int64"
8282
},
8383
"ReferenceUpdate": {
8484
"type": "object",
@@ -144,7 +144,8 @@
144144
"explode": false,
145145
"schema": {
146146
"minimum": 0,
147-
"type": "integer"
147+
"type": "number",
148+
"format": "int64"
148149
},
149150
"example": 50
150151
},
@@ -156,7 +157,8 @@
156157
"explode": false,
157158
"schema": {
158159
"minimum": 0,
159-
"type": "integer"
160+
"type": "number",
161+
"format": "int64"
160162
}
161163
},
162164
"count": {

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ components:
5252
type: object
5353
description: The structure of this object is service-specific
5454
ODataCountResponse:
55-
type: integer
56-
format: int32
55+
type: number
56+
format: int64
5757
ReferenceUpdate:
5858
type: object
5959
properties:
@@ -98,7 +98,8 @@ components:
9898
explode: false
9999
schema:
100100
minimum: 0
101-
type: integer
101+
type: number
102+
format: int64
102103
example: 50
103104
skip:
104105
name: $skip
@@ -108,7 +109,8 @@ components:
108109
explode: false
109110
schema:
110111
minimum: 0
111-
type: integer
112+
type: number
113+
format: int64
112114
count:
113115
name: $count
114116
in: query

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5944,8 +5944,8 @@
59445944
"type": "object"
59455945
},
59465946
"ODataCountResponse": {
5947-
"format": "int32",
5948-
"type": "integer"
5947+
"format": "int64",
5948+
"type": "number"
59495949
},
59505950
"Siterra.Documents.App.DTO.DocumentDtoCollectionResponse": {
59515951
"title": "Collection of DocumentDto",
@@ -6127,14 +6127,16 @@
61276127
"in": "query",
61286128
"name": "$top",
61296129
"description": "Show only the first n items",
6130-
"type": "integer",
6130+
"type": "number",
6131+
"format": "int64",
61316132
"minimum": 0
61326133
},
61336134
"skip": {
61346135
"in": "query",
61356136
"name": "$skip",
61366137
"description": "Skip the first n items",
6137-
"type": "integer",
6138+
"type": "number",
6139+
"format": "int64",
61386140
"minimum": 0
61396141
},
61406142
"count": {

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V2.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4319,8 +4319,8 @@ definitions:
43194319
description: The structure of this object is service-specific
43204320
type: object
43214321
ODataCountResponse:
4322-
format: int32
4323-
type: integer
4322+
format: int64
4323+
type: number
43244324
Siterra.Documents.App.DTO.DocumentDtoCollectionResponse:
43254325
title: Collection of DocumentDto
43264326
type: object
@@ -4442,13 +4442,15 @@ parameters:
44424442
in: query
44434443
name: $top
44444444
description: Show only the first n items
4445-
type: integer
4445+
type: number
4446+
format: int64
44464447
minimum: 0
44474448
skip:
44484449
in: query
44494450
name: $skip
44504451
description: Skip the first n items
4451-
type: integer
4452+
type: number
4453+
format: int64
44524454
minimum: 0
44534455
count:
44544456
in: query

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6660,8 +6660,8 @@
66606660
"description": "The structure of this object is service-specific"
66616661
},
66626662
"ODataCountResponse": {
6663-
"type": "integer",
6664-
"format": "int32"
6663+
"type": "number",
6664+
"format": "int64"
66656665
},
66666666
"Siterra.Documents.App.DTO.DocumentDtoCollectionResponse": {
66676667
"title": "Collection of DocumentDto",
@@ -7001,7 +7001,8 @@
70017001
"explode": false,
70027002
"schema": {
70037003
"minimum": 0,
7004-
"type": "integer"
7004+
"type": "number",
7005+
"format": "int64"
70057006
},
70067007
"example": 50
70077008
},
@@ -7013,7 +7014,8 @@
70137014
"explode": false,
70147015
"schema": {
70157016
"minimum": 0,
7016-
"type": "integer"
7017+
"type": "number",
7018+
"format": "int64"
70177019
}
70187020
},
70197021
"count": {

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4803,8 +4803,8 @@ components:
48034803
type: object
48044804
description: The structure of this object is service-specific
48054805
ODataCountResponse:
4806-
type: integer
4807-
format: int32
4806+
type: number
4807+
format: int64
48084808
Siterra.Documents.App.DTO.DocumentDtoCollectionResponse:
48094809
title: Collection of DocumentDto
48104810
type: object
@@ -5023,7 +5023,8 @@ components:
50235023
explode: false
50245024
schema:
50255025
minimum: 0
5026-
type: integer
5026+
type: number
5027+
format: int64
50275028
example: 50
50285029
skip:
50295030
name: $skip
@@ -5033,7 +5034,8 @@ components:
50335034
explode: false
50345035
schema:
50355036
minimum: 0
5036-
type: integer
5037+
type: number
5038+
format: int64
50375039
count:
50385040
name: $count
50395041
in: query

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31387,8 +31387,8 @@
3138731387
}
3138831388
},
3138931389
"ODataCountResponse": {
31390-
"format": "int32",
31391-
"type": "integer"
31390+
"format": "int64",
31391+
"type": "number"
3139231392
},
3139331393
"Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse": {
3139431394
"title": "Collection of Person",
@@ -31570,14 +31570,16 @@
3157031570
"in": "query",
3157131571
"name": "$top",
3157231572
"description": "Show only the first n items",
31573-
"type": "integer",
31573+
"type": "number",
31574+
"format": "int64",
3157431575
"minimum": 0
3157531576
},
3157631577
"skip": {
3157731578
"in": "query",
3157831579
"name": "$skip",
3157931580
"description": "Skip the first n items",
31580-
"type": "integer",
31581+
"type": "number",
31582+
"format": "int64",
3158131583
"minimum": 0
3158231584
},
3158331585
"count": {

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.V2.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21276,8 +21276,8 @@ definitions:
2127621276
RequestId:
2127721277
type: string
2127821278
ODataCountResponse:
21279-
format: int32
21280-
type: integer
21279+
format: int64
21280+
type: number
2128121281
Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonCollectionResponse:
2128221282
title: Collection of Person
2128321283
type: object
@@ -21399,13 +21399,15 @@ parameters:
2139921399
in: query
2140021400
name: $top
2140121401
description: Show only the first n items
21402-
type: integer
21402+
type: number
21403+
format: int64
2140321404
minimum: 0
2140421405
skip:
2140521406
in: query
2140621407
name: $skip
2140721408
description: Skip the first n items
21408-
type: integer
21409+
type: number
21410+
format: int64
2140921411
minimum: 0
2141021412
count:
2141121413
in: query

0 commit comments

Comments
 (0)