@@ -20,7 +20,7 @@ import * as predicates from '../../src/predicates.ts';
2020const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
2121
2222describe ( '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 ( ) {
2424 specify ( 'should refract to OpenApi 3.0 Element' , function ( ) {
2525 const openApiString = fs
2626 . readFileSync ( path . join ( __dirname , 'fixtures' , 'openapi.json' ) )
@@ -57,7 +57,7 @@ describe('refractor', function () {
5757 visitor : {
5858 OpenapiElement ( element : OpenapiElement ) {
5959 // @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
6161 } ,
6262 } ,
6363 post ( ) { } ,
@@ -88,7 +88,7 @@ describe('refractor', function () {
8888 context ( 'plugin' , function ( ) {
8989 specify ( 'should be called with toolbox object' , function ( ) {
9090 const genericObject = new ObjectElement ( {
91- openapi : '3.0.3 ' ,
91+ openapi : '3.0.4 ' ,
9292 } ) ;
9393 OpenApi3_0Element . refract ( genericObject , {
9494 plugins : [ plugin1 ] ,
@@ -99,7 +99,7 @@ describe('refractor', function () {
9999
100100 specify ( 'should have predicates in toolbox object' , function ( ) {
101101 const genericObject = new ObjectElement ( {
102- openapi : '3.0.3 ' ,
102+ openapi : '3.0.4 ' ,
103103 } ) ;
104104 OpenApi3_0Element . refract ( genericObject , {
105105 plugins : [ plugin1 ] ,
@@ -110,7 +110,7 @@ describe('refractor', function () {
110110
111111 specify ( 'should have namespace in toolbox object' , function ( ) {
112112 const genericObject = new ObjectElement ( {
113- openapi : '3.0.3 ' ,
113+ openapi : '3.0.4 ' ,
114114 } ) ;
115115 OpenApi3_0Element . refract ( genericObject , {
116116 plugins : [ plugin1 ] ,
@@ -123,7 +123,7 @@ describe('refractor', function () {
123123 context ( 'pre hook' , function ( ) {
124124 specify ( 'should call it once' , function ( ) {
125125 const genericObject = new ObjectElement ( {
126- openapi : '3.0.3 ' ,
126+ openapi : '3.0.4 ' ,
127127 } ) ;
128128 OpenApi3_0Element . refract ( genericObject , {
129129 plugins : [ plugin1 ] ,
@@ -134,7 +134,7 @@ describe('refractor', function () {
134134
135135 specify ( 'should call it before other plugin pre hook' , function ( ) {
136136 const genericObject = new ObjectElement ( {
137- openapi : '3.0.3 ' ,
137+ openapi : '3.0.4 ' ,
138138 } ) ;
139139 OpenApi3_0Element . refract ( genericObject , {
140140 plugins : [ plugin1 , plugin2 ] ,
@@ -145,7 +145,7 @@ describe('refractor', function () {
145145
146146 specify ( 'should call it before visiting' , function ( ) {
147147 const genericObject = new ObjectElement ( {
148- openapi : '3.0.3 ' ,
148+ openapi : '3.0.4 ' ,
149149 } ) ;
150150 OpenApi3_0Element . refract ( genericObject , {
151151 plugins : [ plugin1 , plugin2 ] ,
@@ -159,7 +159,7 @@ describe('refractor', function () {
159159 context ( 'post hook' , function ( ) {
160160 specify ( 'should call it once' , function ( ) {
161161 const genericObject = new ObjectElement ( {
162- openapi : '3.0.3 ' ,
162+ openapi : '3.0.4 ' ,
163163 } ) ;
164164 OpenApi3_0Element . refract ( genericObject , {
165165 plugins : [ plugin1 ] ,
@@ -170,7 +170,7 @@ describe('refractor', function () {
170170
171171 specify ( 'should call it before other plugin post hook' , function ( ) {
172172 const genericObject = new ObjectElement ( {
173- openapi : '3.0.3 ' ,
173+ openapi : '3.0.4 ' ,
174174 } ) ;
175175 OpenApi3_0Element . refract ( genericObject , {
176176 plugins : [ plugin1 , plugin2 ] ,
@@ -181,7 +181,7 @@ describe('refractor', function () {
181181
182182 specify ( 'should call it after visiting' , function ( ) {
183183 const genericObject = new ObjectElement ( {
184- openapi : '3.0.3 ' ,
184+ openapi : '3.0.4 ' ,
185185 } ) ;
186186 OpenApi3_0Element . refract ( genericObject , {
187187 plugins : [ plugin1 , plugin2 ] ,
@@ -195,7 +195,7 @@ describe('refractor', function () {
195195 context ( 'visitor' , function ( ) {
196196 specify ( 'should be called once' , function ( ) {
197197 const genericObject = new ObjectElement ( {
198- openapi : '3.0.3 ' ,
198+ openapi : '3.0.4 ' ,
199199 } ) ;
200200 OpenApi3_0Element . refract ( genericObject , {
201201 plugins : [ plugin1 , plugin2 ] ,
@@ -207,7 +207,7 @@ describe('refractor', function () {
207207
208208 specify ( 'should be called in proper order' , function ( ) {
209209 const genericObject = new ObjectElement ( {
210- openapi : '3.0.3 ' ,
210+ openapi : '3.0.4 ' ,
211211 } ) ;
212212 OpenApi3_0Element . refract ( genericObject , {
213213 plugins : [ plugin1 , plugin2 ] ,
@@ -221,7 +221,7 @@ describe('refractor', function () {
221221 context ( 'first plugin' , function ( ) {
222222 specify ( 'should receive arguments' , function ( ) {
223223 const genericObject = new ObjectElement ( {
224- openapi : '3.0.3 ' ,
224+ openapi : '3.0.4 ' ,
225225 } ) ;
226226 OpenApi3_0Element . refract ( genericObject , {
227227 plugins : [ plugin1 ] ,
@@ -232,7 +232,7 @@ describe('refractor', function () {
232232
233233 specify ( 'should receive node as first argument' , function ( ) {
234234 const genericObject = new ObjectElement ( {
235- openapi : '3.0.3 ' ,
235+ openapi : '3.0.4 ' ,
236236 } ) ;
237237 OpenApi3_0Element . refract ( genericObject , {
238238 plugins : [ plugin1 ] ,
@@ -243,20 +243,20 @@ describe('refractor', function () {
243243
244244 specify ( 'should augment openapi version' , function ( ) {
245245 const genericObject = new ObjectElement ( {
246- openapi : '3.0.3 ' ,
246+ openapi : '3.0.4 ' ,
247247 } ) ;
248248 const openApiElement = OpenApi3_0Element . refract ( genericObject , {
249249 plugins : [ plugin1 ] ,
250250 } ) ;
251251
252- assert . deepEqual ( toValue ( openApiElement ) , { openapi : '3.0.4 ' } ) ;
252+ assert . deepEqual ( toValue ( openApiElement ) , { openapi : '3.0.5 ' } ) ;
253253 } ) ;
254254 } ) ;
255255
256256 context ( 'second plugin' , function ( ) {
257257 specify ( 'should receive arguments' , function ( ) {
258258 const genericObject = new ObjectElement ( {
259- openapi : '3.0.3 ' ,
259+ openapi : '3.0.4 ' ,
260260 } ) ;
261261 OpenApi3_0Element . refract ( genericObject , {
262262 plugins : [ plugin1 , plugin2 ] ,
@@ -267,7 +267,7 @@ describe('refractor', function () {
267267
268268 specify ( 'should receive node as first argument' , function ( ) {
269269 const genericObject = new ObjectElement ( {
270- openapi : '3.0.3 ' ,
270+ openapi : '3.0.4 ' ,
271271 } ) ;
272272 OpenApi3_0Element . refract ( genericObject , {
273273 plugins : [ plugin1 , plugin2 ] ,
@@ -278,7 +278,7 @@ describe('refractor', function () {
278278
279279 specify ( 'should append metadata to openapi version' , function ( ) {
280280 const genericObject = new ObjectElement ( {
281- openapi : '3.0.3 ' ,
281+ openapi : '3.0.4 ' ,
282282 } ) ;
283283 const openApiElement = OpenApi3_0Element . refract ( genericObject , {
284284 plugins : [ plugin1 , plugin2 ] ,
0 commit comments