File tree 2 files changed +23
-5
lines changed
2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,20 @@ const schemaPropertiesAccessors: Array<TableAccessor<SchemaElement>> = [
49
49
el => {
50
50
const enumElements = getEnumHTMLElements ( el . schema ) ;
51
51
return (
52
- el . schema . content . description && (
53
- < div >
52
+ < div >
53
+ { el . schema . content . description && (
54
54
< Markdown > { el . schema . content . description } </ Markdown >
55
- { enumElements . length > 0 && < div > Enum: { enumElements } </ div > }
56
- </ div >
57
- )
55
+ ) }
56
+ { enumElements . length > 0 && < div > Enum: { enumElements } </ div > }
57
+ { el . schema . content . pattern && (
58
+ < div >
59
+ Must Match{ ' ' }
60
+ < span className = { bemClasses . element ( `pattern` ) } >
61
+ { el . schema . content . pattern }
62
+ </ span >
63
+ </ div >
64
+ ) }
65
+ </ div >
58
66
) ;
59
67
} ,
60
68
] ;
Original file line number Diff line number Diff line change 1255
1255
padding : 0 0.5rem ;
1256
1256
color : # f6993f ;
1257
1257
}
1258
+
1259
+ .asyncapi__pattern {
1260
+ line-height : 2 ;
1261
+ background-color : # 794acf ;
1262
+ font-weight : bold;
1263
+ border-radius : 0.25rem ;
1264
+ margin-left : 0.25rem ;
1265
+ padding : 0 0.5rem ;
1266
+ color : # fff ;
1267
+ }
You can’t perform that action at this time.
0 commit comments