@@ -44,17 +44,45 @@ private static V1beta1JSONSchemaProps Convert(this V1JSONSchemaProps props)
44
44
{
45
45
var betaProps = new V1beta1JSONSchemaProps ( ) ;
46
46
47
- betaProps . Description = props . Description ;
48
- betaProps . Type = props . Type ;
49
- betaProps . Format = props . Format ;
50
- betaProps . EnumProperty = props . EnumProperty ;
51
47
betaProps . Nullable = props . Nullable ;
48
+ betaProps . Description = props . Description ;
49
+
50
+ if ( props . ExternalDocs != null )
51
+ {
52
+ betaProps . ExternalDocs = new V1beta1ExternalDocumentation (
53
+ props . ExternalDocs . Description ,
54
+ props . ExternalDocs . Url ) ;
55
+ }
56
+
57
+ betaProps . MaxItems = props . MaxItems ;
58
+ betaProps . MinItems = props . MinItems ;
59
+ betaProps . UniqueItems = props . UniqueItems ;
60
+
61
+ betaProps . MaxLength = props . MaxLength ;
62
+ betaProps . MinLength = props . MinLength ;
63
+
64
+ betaProps . MultipleOf = props . MultipleOf ;
65
+
66
+ betaProps . Pattern = props . Pattern ;
67
+
68
+ betaProps . Maximum = props . Maximum ;
69
+ betaProps . ExclusiveMaximum = props . ExclusiveMaximum ;
70
+
71
+ betaProps . Minimum = props . Minimum ;
72
+ betaProps . ExclusiveMinimum = props . ExclusiveMinimum ;
73
+
52
74
if ( props . Properties != null )
53
75
{
54
76
betaProps . Properties = new Dictionary < string , V1beta1JSONSchemaProps > (
55
77
props . Properties . Select ( p => KeyValuePair . Create ( p . Key , p . Value . Convert ( ) ) ) ) ;
56
78
}
57
79
80
+ betaProps . Type = props . Type ;
81
+ betaProps . Format = props . Format ;
82
+ betaProps . Items = ( props . Items as V1JSONSchemaProps ) ? . Convert ( ) ;
83
+ betaProps . Required = props . Required ;
84
+ betaProps . EnumProperty = props . EnumProperty ;
85
+
58
86
return betaProps ;
59
87
}
60
88
}
0 commit comments