File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -819,6 +819,7 @@ definitions:
819
819
type : string
820
820
pattern : " ^\\ +(?:[0-9]-?){6,14}[0-9]$"
821
821
example : +1-202-555-0192
822
+ x-nullable : true
822
823
userStatus :
823
824
description : User status
824
825
type : integer
Original file line number Diff line number Diff line change @@ -63,6 +63,14 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin;
63
63
font-weight : bold ;
64
64
}
65
65
66
+ .param-nullable {
67
+ vertical-align : middle ;
68
+ line-height : $param-name-height ;
69
+ color : #3195a6 ;
70
+ font-size : 12px ;
71
+ font-weight : bold ;
72
+ }
73
+
66
74
.param-type {
67
75
vertical-align : middle ;
68
76
line-height : $param-name-height ;
Original file line number Diff line number Diff line change 70
70
< span class ="param-range " *ngIf ="prop._range "> {{prop._range}} </ span >
71
71
</ span >
72
72
< span *ngIf ="prop._required " class ="param-required "> Required</ span >
73
+ < span *ngIf ="prop._nullable " class ="param-nullable "> Nullable</ span >
73
74
< div *ngIf ="prop.default "> Default: {{prop.default | json}}</ div >
74
75
< div *ngIf ="prop.enum && !prop.isDiscriminator " class ="param-enum ">
75
76
< span *ngFor ="let enumItem of prop.enum " class ="enum-value {{enumItem.type}} "> {{enumItem.val | json}} </ span >
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ export class SchemaHelper {
229
229
propertySchema . _pointer = null ;
230
230
}
231
231
propertySchema . _required = ! ! requiredMap [ propName ] ;
232
+ propertySchema . _nullable = ! ! propertySchema [ 'x-nullable' ] ;
232
233
propertySchema . isDiscriminator = ( schema . discriminator === propName ) ;
233
234
return propertySchema ;
234
235
} ) ;
You can’t perform that action at this time.
0 commit comments