@@ -3851,43 +3851,43 @@ export const route = h.httpRoute({
3851
3851
200: t.literal('OK'),
3852
3852
},
3853
3853
});
3854
- `
3854
+ ` ;
3855
3855
3856
3856
testCase ( "route with nested array examples" , ROUTE_WITH_NESTED_ARRAY_EXAMPLES , {
3857
- " openapi" : "3.0.3" ,
3858
- " info" : {
3859
- " title" : "Test" ,
3860
- " version" : "1.0.0"
3857
+ openapi : "3.0.3" ,
3858
+ info : {
3859
+ title : "Test" ,
3860
+ version : "1.0.0"
3861
3861
} ,
3862
- " paths" : {
3862
+ paths : {
3863
3863
"/foo" : {
3864
- " post" : {
3865
- " parameters" : [ ] ,
3866
- " requestBody" : {
3867
- " content" : {
3864
+ post : {
3865
+ parameters : [ ] ,
3866
+ requestBody : {
3867
+ content : {
3868
3868
"application/json" : {
3869
- " schema" : {
3870
- " type" : "object" ,
3871
- " properties" : {
3872
- " nested" : {
3869
+ schema : {
3870
+ type : "object" ,
3871
+ properties : {
3872
+ nested : {
3873
3873
"$ref" : "#/components/schemas/thirdLevel"
3874
3874
}
3875
3875
} ,
3876
- " required" : [
3876
+ required : [
3877
3877
"nested"
3878
3878
]
3879
3879
}
3880
3880
}
3881
3881
}
3882
3882
} ,
3883
- " responses" : {
3884
- " 200" : {
3885
- " description" : "OK" ,
3886
- " content" : {
3883
+ responses : {
3884
+ 200 : {
3885
+ description : "OK" ,
3886
+ content : {
3887
3887
"application/json" : {
3888
- " schema" : {
3889
- " type" : "string" ,
3890
- " enum" : [
3888
+ schema : {
3889
+ type : "string" ,
3890
+ enum : [
3891
3891
"OK"
3892
3892
]
3893
3893
}
@@ -3898,40 +3898,40 @@ testCase("route with nested array examples", ROUTE_WITH_NESTED_ARRAY_EXAMPLES, {
3898
3898
}
3899
3899
}
3900
3900
} ,
3901
- " components" : {
3902
- " schemas" : {
3903
- " firstLevel" : {
3904
- " title" : "firstLevel" ,
3905
- " type" : "array" ,
3906
- " example" : [ "a" , "b" ] ,
3907
- " items" : {
3908
- " type" : "string"
3901
+ components : {
3902
+ schemas : {
3903
+ firstLevel : {
3904
+ title : "firstLevel" ,
3905
+ type : "array" ,
3906
+ example : [ "a" , "b" ] ,
3907
+ items : {
3908
+ type : "string"
3909
3909
}
3910
3910
} ,
3911
- " secondLevel" : {
3912
- " title" : "secondLevel" ,
3913
- " type" : "array" ,
3914
- " example" : [ [ "a" , "b" ] , [ "c" , "d" ] ] ,
3915
- " items" : {
3916
- " type" : "array" ,
3917
- " example" : [ "a" , "b" ] ,
3918
- " items" : {
3919
- " type" : "string"
3911
+ secondLevel : {
3912
+ title : "secondLevel" ,
3913
+ type : "array" ,
3914
+ example : [ [ "a" , "b" ] , [ "c" , "d" ] ] ,
3915
+ items : {
3916
+ type : "array" ,
3917
+ example : [ "a" , "b" ] ,
3918
+ items : {
3919
+ type : "string"
3920
3920
}
3921
3921
}
3922
3922
} ,
3923
- " thirdLevel" : {
3924
- " title" : "thirdLevel" ,
3925
- " type" : "array" ,
3926
- " example" : [ [ [ "a" ] , [ "b" ] ] , [ [ "c" ] , [ "d" ] ] ] ,
3927
- " items" : {
3928
- " type" : "array" ,
3929
- " example" : [ [ "a" , "b" ] , [ "c" , "d" ] ] ,
3930
- " items" : {
3931
- " type" : "array" ,
3932
- " example" : [ "a" , "b" ] ,
3933
- " items" : {
3934
- " type" : "string"
3923
+ thirdLevel : {
3924
+ title : "thirdLevel" ,
3925
+ type : "array" ,
3926
+ example : [ [ [ "a" ] , [ "b" ] ] , [ [ "c" ] , [ "d" ] ] ] ,
3927
+ items : {
3928
+ type : "array" ,
3929
+ example : [ [ "a" , "b" ] , [ "c" , "d" ] ] ,
3930
+ items : {
3931
+ type : "array" ,
3932
+ example : [ "a" , "b" ] ,
3933
+ items : {
3934
+ type : "string"
3935
3935
}
3936
3936
}
3937
3937
}
0 commit comments