|
183 | 183 | "additionalProperties": false |
184 | 184 | }, |
185 | 185 |
|
| 186 | + "messages": { |
| 187 | + "description": "Configures how API Extractor reports error and warning messages produced during analysis.", |
| 188 | + "type": "object", |
| 189 | + "properties": { |
| 190 | + "compilerMessageReporting": { |
| 191 | + "description": "Configures handling of diagnostic messages generating the TypeScript compiler while analyzing the input .d.ts files.", |
| 192 | + "$ref": "#/definitions/extractorMessageReportingTable" |
| 193 | + }, |
| 194 | + "extractorMessageReporting": { |
| 195 | + "description": "Configures handling of messages reported by API Extractor during its analysis.", |
| 196 | + "$ref": "#/definitions/extractorMessageReportingTable" |
| 197 | + }, |
| 198 | + "tsdocMessageReporting": { |
| 199 | + "description": "Configures handling of messages reported by the TSDoc parser when analyzing code comments.", |
| 200 | + "$ref": "#/definitions/extractorMessageReportingTable" |
| 201 | + } |
| 202 | + }, |
| 203 | + "additionalProperties": false |
| 204 | + }, |
| 205 | + |
186 | 206 | "skipLibCheck": { |
187 | 207 | "description": "This option causes the typechecker to be invoked with the --skipLibCheck option. This option is not recommended and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses for its analysis. If this option is used, it is strongly recommended that broken dependencies be fixed or upgraded.", |
188 | 208 | "type": "boolean" |
|
193 | 213 | } |
194 | 214 | }, |
195 | 215 | "required": [ "compiler", "project" ], |
196 | | - "additionalProperties": false |
| 216 | + "additionalProperties": false, |
| 217 | + |
| 218 | + "definitions": { |
| 219 | + "extractorMessageReportingTable": { |
| 220 | + "type":"object", |
| 221 | + "description": "Specifies a table of reporting rules for different message identifiers, and also the default rule used for identifiers that do not appear in the table. The key is a message identifier for the associated type of message, or \"default\" to specify the default policy. For example, the key might be \"TS2551\" (a compiler message), \"tsdoc-link-tag-unescaped-text\" (a TSDOc message), or \"ae-extra-release-tag\" (a message related to the API Extractor analysis).", |
| 222 | + "patternProperties": { |
| 223 | + ".+": { |
| 224 | + "type": "object", |
| 225 | + "description": "Configures reporting for a given message identifier.", |
| 226 | + "properties": { |
| 227 | + "logLevel": { |
| 228 | + "type": "string", |
| 229 | + "description": "Specifies whether the message should be written to the the tool's output log. Note that the \"addToApiReviewFile\" property may supersede this option.", |
| 230 | + "enum": [ "Error", "Warning", "None" ] |
| 231 | + }, |
| 232 | + "addToApiReviewFile": { |
| 233 | + "type": "boolean", |
| 234 | + "description": "If API Extractor is configured to write an API review file (.api.ts), then the message will be written inside that file. If the API review file is NOT being written, then the message is instead logged according to the \"logLevel\" option." |
| 235 | + } |
| 236 | + }, |
| 237 | + "additionalProperties": false |
| 238 | + } |
| 239 | + }, |
| 240 | + "additionalProperties": false |
| 241 | + } |
| 242 | + } |
197 | 243 | } |
0 commit comments