Project: mule
Issue MULE-9225: If the @XML annotation is not present, the extension should not fail.
Currently when creating an extension, the @XML annotation is mandatory, we should specify at least the namespace of the extension. If the @XML annotation is not present, this error is thrown [ERROR] diagnostic: error: xml model property cannot be null. Instead of creating a validator for avoiding this error, we must implement a default behaviour for the @XML annotation when it is not present. The behavior should be that: 1) The annotation can be either completely absent or present but with all optional parameters 2) The namespace attribute will be derived from the extension name by transforming to lower case, removing all occurrences of the "connector" String and hyphenizing 3) The schemaLocation should default to http://www.mulesoft.org/schema/mule/{1}, where {1} is replaced by the namespace value 4) The schemaVersion should default to the Major and minor components of the Semver extension version, without classifiers. For example: 4.0.0-SNAPSHOT should translate to 4.0
Story points: 5