File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -258,11 +258,6 @@ enum SingleOrVec<T> {
258258 Vec ( Vec < T > ) ,
259259}
260260
261- #[ cfg( test) ]
262- fn schemars_schema_to_kube_schema ( incoming : schemars:: Schema ) -> Result < Schema , serde_json:: Error > {
263- serde_json:: from_value ( incoming. to_value ( ) )
264- }
265-
266261impl Transform for StructuralSchemaRewriter {
267262 fn transform ( & mut self , transform_schema : & mut schemars:: Schema ) {
268263 // Apply this (self) transform to all subschemas
Original file line number Diff line number Diff line change @@ -193,8 +193,6 @@ fn tagged_enum_with_stuct_and_tuple_variants_before_one_of_hoisting() {
193193#[ cfg( test) ]
194194#[ test]
195195fn tagged_enum_with_stuct_and_tuple_variants_after_one_of_hoisting ( ) {
196- use serde_json:: json;
197-
198196 let original_schema_object_value = serde_json:: json!( {
199197 "description" : "A complex tagged enum with unit and struct variants" ,
200198 "oneOf" : [
You can’t perform that action at this time.
0 commit comments