@@ -20,7 +20,7 @@ import * as predicates from '../../src/predicates.ts';
20
20
const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
21
21
22
22
describe ( 'refractor' , function ( ) {
23
- context ( 'given generic ApiDOM object in OpenApi 3.0.3 shape' , function ( ) {
23
+ context ( 'given generic ApiDOM object in OpenApi 3.0.4 shape' , function ( ) {
24
24
specify ( 'should refract to OpenApi 3.0 Element' , function ( ) {
25
25
const openApiString = fs
26
26
. readFileSync ( path . join ( __dirname , 'fixtures' , 'openapi.json' ) )
@@ -57,7 +57,7 @@ describe('refractor', function () {
57
57
visitor : {
58
58
OpenapiElement ( element : OpenapiElement ) {
59
59
// @ts -ignore
60
- element . content = '3.0.4 ' ; // eslint-disable-line no-param-reassign
60
+ element . content = '3.0.5 ' ; // eslint-disable-line no-param-reassign
61
61
} ,
62
62
} ,
63
63
post ( ) { } ,
@@ -88,7 +88,7 @@ describe('refractor', function () {
88
88
context ( 'plugin' , function ( ) {
89
89
specify ( 'should be called with toolbox object' , function ( ) {
90
90
const genericObject = new ObjectElement ( {
91
- openapi : '3.0.3 ' ,
91
+ openapi : '3.0.4 ' ,
92
92
} ) ;
93
93
OpenApi3_0Element . refract ( genericObject , {
94
94
plugins : [ plugin1 ] ,
@@ -99,7 +99,7 @@ describe('refractor', function () {
99
99
100
100
specify ( 'should have predicates in toolbox object' , function ( ) {
101
101
const genericObject = new ObjectElement ( {
102
- openapi : '3.0.3 ' ,
102
+ openapi : '3.0.4 ' ,
103
103
} ) ;
104
104
OpenApi3_0Element . refract ( genericObject , {
105
105
plugins : [ plugin1 ] ,
@@ -110,7 +110,7 @@ describe('refractor', function () {
110
110
111
111
specify ( 'should have namespace in toolbox object' , function ( ) {
112
112
const genericObject = new ObjectElement ( {
113
- openapi : '3.0.3 ' ,
113
+ openapi : '3.0.4 ' ,
114
114
} ) ;
115
115
OpenApi3_0Element . refract ( genericObject , {
116
116
plugins : [ plugin1 ] ,
@@ -123,7 +123,7 @@ describe('refractor', function () {
123
123
context ( 'pre hook' , function ( ) {
124
124
specify ( 'should call it once' , function ( ) {
125
125
const genericObject = new ObjectElement ( {
126
- openapi : '3.0.3 ' ,
126
+ openapi : '3.0.4 ' ,
127
127
} ) ;
128
128
OpenApi3_0Element . refract ( genericObject , {
129
129
plugins : [ plugin1 ] ,
@@ -134,7 +134,7 @@ describe('refractor', function () {
134
134
135
135
specify ( 'should call it before other plugin pre hook' , function ( ) {
136
136
const genericObject = new ObjectElement ( {
137
- openapi : '3.0.3 ' ,
137
+ openapi : '3.0.4 ' ,
138
138
} ) ;
139
139
OpenApi3_0Element . refract ( genericObject , {
140
140
plugins : [ plugin1 , plugin2 ] ,
@@ -145,7 +145,7 @@ describe('refractor', function () {
145
145
146
146
specify ( 'should call it before visiting' , function ( ) {
147
147
const genericObject = new ObjectElement ( {
148
- openapi : '3.0.3 ' ,
148
+ openapi : '3.0.4 ' ,
149
149
} ) ;
150
150
OpenApi3_0Element . refract ( genericObject , {
151
151
plugins : [ plugin1 , plugin2 ] ,
@@ -159,7 +159,7 @@ describe('refractor', function () {
159
159
context ( 'post hook' , function ( ) {
160
160
specify ( 'should call it once' , function ( ) {
161
161
const genericObject = new ObjectElement ( {
162
- openapi : '3.0.3 ' ,
162
+ openapi : '3.0.4 ' ,
163
163
} ) ;
164
164
OpenApi3_0Element . refract ( genericObject , {
165
165
plugins : [ plugin1 ] ,
@@ -170,7 +170,7 @@ describe('refractor', function () {
170
170
171
171
specify ( 'should call it before other plugin post hook' , function ( ) {
172
172
const genericObject = new ObjectElement ( {
173
- openapi : '3.0.3 ' ,
173
+ openapi : '3.0.4 ' ,
174
174
} ) ;
175
175
OpenApi3_0Element . refract ( genericObject , {
176
176
plugins : [ plugin1 , plugin2 ] ,
@@ -181,7 +181,7 @@ describe('refractor', function () {
181
181
182
182
specify ( 'should call it after visiting' , function ( ) {
183
183
const genericObject = new ObjectElement ( {
184
- openapi : '3.0.3 ' ,
184
+ openapi : '3.0.4 ' ,
185
185
} ) ;
186
186
OpenApi3_0Element . refract ( genericObject , {
187
187
plugins : [ plugin1 , plugin2 ] ,
@@ -195,7 +195,7 @@ describe('refractor', function () {
195
195
context ( 'visitor' , function ( ) {
196
196
specify ( 'should be called once' , function ( ) {
197
197
const genericObject = new ObjectElement ( {
198
- openapi : '3.0.3 ' ,
198
+ openapi : '3.0.4 ' ,
199
199
} ) ;
200
200
OpenApi3_0Element . refract ( genericObject , {
201
201
plugins : [ plugin1 , plugin2 ] ,
@@ -207,7 +207,7 @@ describe('refractor', function () {
207
207
208
208
specify ( 'should be called in proper order' , function ( ) {
209
209
const genericObject = new ObjectElement ( {
210
- openapi : '3.0.3 ' ,
210
+ openapi : '3.0.4 ' ,
211
211
} ) ;
212
212
OpenApi3_0Element . refract ( genericObject , {
213
213
plugins : [ plugin1 , plugin2 ] ,
@@ -221,7 +221,7 @@ describe('refractor', function () {
221
221
context ( 'first plugin' , function ( ) {
222
222
specify ( 'should receive arguments' , function ( ) {
223
223
const genericObject = new ObjectElement ( {
224
- openapi : '3.0.3 ' ,
224
+ openapi : '3.0.4 ' ,
225
225
} ) ;
226
226
OpenApi3_0Element . refract ( genericObject , {
227
227
plugins : [ plugin1 ] ,
@@ -232,7 +232,7 @@ describe('refractor', function () {
232
232
233
233
specify ( 'should receive node as first argument' , function ( ) {
234
234
const genericObject = new ObjectElement ( {
235
- openapi : '3.0.3 ' ,
235
+ openapi : '3.0.4 ' ,
236
236
} ) ;
237
237
OpenApi3_0Element . refract ( genericObject , {
238
238
plugins : [ plugin1 ] ,
@@ -243,20 +243,20 @@ describe('refractor', function () {
243
243
244
244
specify ( 'should augment openapi version' , function ( ) {
245
245
const genericObject = new ObjectElement ( {
246
- openapi : '3.0.3 ' ,
246
+ openapi : '3.0.4 ' ,
247
247
} ) ;
248
248
const openApiElement = OpenApi3_0Element . refract ( genericObject , {
249
249
plugins : [ plugin1 ] ,
250
250
} ) ;
251
251
252
- assert . deepEqual ( toValue ( openApiElement ) , { openapi : '3.0.4 ' } ) ;
252
+ assert . deepEqual ( toValue ( openApiElement ) , { openapi : '3.0.5 ' } ) ;
253
253
} ) ;
254
254
} ) ;
255
255
256
256
context ( 'second plugin' , function ( ) {
257
257
specify ( 'should receive arguments' , function ( ) {
258
258
const genericObject = new ObjectElement ( {
259
- openapi : '3.0.3 ' ,
259
+ openapi : '3.0.4 ' ,
260
260
} ) ;
261
261
OpenApi3_0Element . refract ( genericObject , {
262
262
plugins : [ plugin1 , plugin2 ] ,
@@ -267,7 +267,7 @@ describe('refractor', function () {
267
267
268
268
specify ( 'should receive node as first argument' , function ( ) {
269
269
const genericObject = new ObjectElement ( {
270
- openapi : '3.0.3 ' ,
270
+ openapi : '3.0.4 ' ,
271
271
} ) ;
272
272
OpenApi3_0Element . refract ( genericObject , {
273
273
plugins : [ plugin1 , plugin2 ] ,
@@ -278,7 +278,7 @@ describe('refractor', function () {
278
278
279
279
specify ( 'should append metadata to openapi version' , function ( ) {
280
280
const genericObject = new ObjectElement ( {
281
- openapi : '3.0.3 ' ,
281
+ openapi : '3.0.4 ' ,
282
282
} ) ;
283
283
const openApiElement = OpenApi3_0Element . refract ( genericObject , {
284
284
plugins : [ plugin1 , plugin2 ] ,
0 commit comments