Skip to content

Provide validation of properties file from the catalog #671

Closed
@apupier

Description

@apupier

The Camel core catalog is providing a validation mechanism. For instance, by checking that parameters used are valid. This validation is used by camel maven plugin and by Camel Language Server.

It would be interesting to provide validation too for properties file.

  • Provide API method taking a properties string text and returning a list of Validation result. The validation result should contain at least a message and the range.
  • Validate that property key is valid
  • Validate that camel.(source|sink) corresponds to the source sink nature of the connector.class
  • Validate that connector class and camel.(source|sink).url is valid
  • Validate that required properties are available
  • Validate that there is no duplicated keys (with the variation of dashed names and camelCase name)
  • Validate that values are boolean for boolean properties
  • Validate that values for enum are valid
  • Validate that camel.(source|sink).url is not mixed with camel.component.* notations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions