You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -135,7 +135,8 @@ The abstract base class of all writers.
135
135
Not supported if `space` when calling `stringify` is 0.
136
136
(Except for comments of root object)
137
137
138
-
`writer.stringify(value, replacer, space)`
138
+
139
+
**`writer.stringify(value, replacer, space)`**
139
140
* Convert value to JSON string with comments.
140
141
* The signature is the same as [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify)
141
142
* JSON stringify implementation is based on the following code: https://github.com/douglascrockford/JSON-js/blob/2a76286e00cdc1e98fbc9e9ec6589563a3a4c3bb/json2.js
@@ -145,10 +146,11 @@ The abstract base class of all writers.
145
146
146
147
A class of JSON comment writer which supports custom comments for fields specified by path.
147
148
148
-
`writer = new CustomCommentWriter(configuration)`
149
+
**`writer = new CustomCommentWriter(configuration)`**
149
150
* Please refer to the constructor of [JSONCommentWriterBase](#JSONCommentWriterBase).
150
151
151
-
`writer.addComments(selector, comments)`
152
+
153
+
**`writer.addComments(selector, comments)`**
152
154
* Add custom `comments` to fields specified by `selector`.
153
155
*`selector`: (string | number | undefined)[] (required)
154
156
@@ -164,7 +166,7 @@ A class of JSON comment writer which supports custom comments for fields specifi
164
166
165
167
A class of JSON comment writer generating comments for fields specified in JSON schema.
166
168
167
-
`writer = new SchemaMetadataWriter(schemaObject, commentGenerator, configuration)`
169
+
**`writer = new SchemaMetadataWriter(schemaObject, commentGenerator, configuration)`**
0 commit comments