Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Align JSDoc template & plugin with OpenUI5 1.87.0 (#572)
* [FEATURE] Align JSDoc template & plugin with OpenUI5 1.87.0 Includes the following changes - [INTERNAL] encode property default values as JS string literals SAP/openui5@a63d92235 - [INTERNAL] Update copyright year to 2021 SAP/openui5@bc6825e48 - [FIX] Corrected regular expression (SAPHosted) SAP/openui5@319798593 - [FEATURE] Improve documentation for restricted APIs SAP/openui5@cb855596b - generated "auto-doc" honors visibility of target class. If target class is restricted, generated documentation also has visibility restricted - for restricted APIs, export the list of allowed consumers to api.json (property name 'allowedFor') - fix split of allowed consumers in tag handler for '@ui5-restricted' (comma is the only valid separator) - [FEATURE] Added FAQ section in ApiRef SAP/openui5@8d2d85e69 An extra FAQ section will be displayed in ApiRef whenever FAQ content is specified. - [INTERNAL] Change to inclusive term "excluded"/"included" SAP/openui5@7b2ac1edb - [INTERNAL] Add missing props to event metadata SAP/openui5@ab7ab07ea The properties 'allowPreventDefault' and 'enableEventBubbling' had been missing in the API summary (api.json) for events. - [INTERNAL] Make interface validation more robust SAP/openui5@32f59b31c The validation of an implementation against an implemented interface should not crash when the implementation has no methods at all. - [INTERNAL] Minor improvements of template SAP/openui5@e766eeee5 - [INTERNAL] Handling of defaultValues, error logging SAP/openui5@3bd509b1f A default value of "" (empty string) was not handled properly when generating auto-doc comments and a default value of "undefined" was not represented in the final api.json. To avoid confusion in the log, errors that do not break the build are no longer reported as errors, but as 'future errors'. APIs that can only be addressed via their global name, not via an AMD dependency, can now be marked with @ui5-global-only. They are no longer reported as errors during the build (as they can't be fixed). - [INTERNAL] Export only valid 'since' values SAP/openui5@a58310b2d - [INTERNAL] Normalize notation for generic types SAP/openui5@6e4e0ea87 For generic types, JSDoc allows two different notations, one with a dot between the type's name and the type parameters (e.g. Array.<string>) and one without the dot. The documentation for the Google Closure Compiler (to which JSDoc refers) already rates the notation with the dot as 'deprecated' (see https://github.com/google/closure-compiler/wiki/Types-in-the-Closure-Type-System , Type Application), JSDoc doesn't. However, as the notation without the dot is also common to TypeScript developers, all types in the api.json will now be normalized to that notation. - [INTERNAL] Add default value to JSDoc SAP/openui5@bb6001950 Adding default values of function parameters to JSDoc conform notation * [INTERNAL] Encode property default values as JS string literals
- Loading branch information