@@ -188,4 +188,67 @@ describe('Openapi3 Response', () => {
188188 } ) ,
189189 ] ) )
190190 } )
191+
192+ describe ( 'Add/remove default values' , ( ) => {
193+
194+ test ( 'Add allowReserved attribute with default value for encoding' , async ( ) => {
195+ const testId = 'add-allowReserved-attribute-with-default-value-for-encoding'
196+ const result = await compareFiles ( SUITE_ID , testId )
197+ expect ( result ) . toEqual ( [ ] )
198+ } )
199+
200+ test ( 'Remove allowReserved attribute with default value for encoding' , async ( ) => {
201+ const testId = 'remove-allowReserved-attribute-with-default-value-from-encoding'
202+ const result = await compareFiles ( SUITE_ID , testId )
203+ expect ( result ) . toEqual ( [ ] )
204+ } )
205+
206+ test ( 'Add required attribute with default value for header' , async ( ) => {
207+ const testId = 'add-required-attribute-with-default-value-for-header'
208+ const result = await compareFiles ( SUITE_ID , testId )
209+ expect ( result ) . toEqual ( [ ] )
210+ } )
211+
212+ test ( 'Remove required attribute with default value from header' , async ( ) => {
213+ const testId = 'remove-required-attribute-with-default-value-from-header'
214+ const result = await compareFiles ( SUITE_ID , testId )
215+ expect ( result ) . toEqual ( [ ] )
216+ } )
217+
218+ test ( 'Add deprecated attribute with default value for header' , async ( ) => {
219+ const testId = 'add-deprecated-attribute-with-default-value-for-header'
220+ const result = await compareFiles ( SUITE_ID , testId )
221+ expect ( result ) . toEqual ( [ ] )
222+ } )
223+
224+ test ( 'Remove deprecated attribute with default value from header' , async ( ) => {
225+ const testId = 'remove-deprecated-attribute-with-default-value-from-header'
226+ const result = await compareFiles ( SUITE_ID , testId )
227+ expect ( result ) . toEqual ( [ ] )
228+ } )
229+
230+ test ( 'Add allowEmptyValue attribute with default value for header' , async ( ) => {
231+ const testId = 'add-allowEmptyValue-attribute-with-default-value-for-header'
232+ const result = await compareFiles ( SUITE_ID , testId )
233+ expect ( result ) . toEqual ( [ ] )
234+ } )
235+
236+ test ( 'Remove allowEmptyValue attribute with default value from header' , async ( ) => {
237+ const testId = 'remove-allowEmptyValue-attribute-with-default-value-from-header'
238+ const result = await compareFiles ( SUITE_ID , testId )
239+ expect ( result ) . toEqual ( [ ] )
240+ } )
241+
242+ test ( 'Add allowReserved attribute with default value for header' , async ( ) => {
243+ const testId = 'add-allowReserved-attribute-with-default-value-for-header'
244+ const result = await compareFiles ( SUITE_ID , testId )
245+ expect ( result ) . toEqual ( [ ] )
246+ } )
247+
248+ test ( 'Remove allowReserved attribute with default value from header' , async ( ) => {
249+ const testId = 'remove-allowReserved-attribute-with-default-value-from-header'
250+ const result = await compareFiles ( SUITE_ID , testId )
251+ expect ( result ) . toEqual ( [ ] )
252+ } )
253+ } )
191254} )
0 commit comments