[
https://issues.apache.org/jira/browse/CAMEL-19700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760583#comment-17760583
]
Tomohisa Igarashi commented on CAMEL-19700:
-------------------------------------------
Hit a problem, with `additionalProperties: false`, the camel case properties
like `aggregateController` is no longer allowed.
[https://github.com/apache/camel/blob/camel-4.0.0/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json#L377]
It seems only the top level processor definitions have both camelCase and
kebab-case ATM. In order to be really strict, we would need to put something
like `oneOf: {camelCase, kebab-case}}` for the properties.
> camel-yaml-dsl: Add "additionalProperties: false" on every sub schema
> ---------------------------------------------------------------------
>
> Key: CAMEL-19700
> URL: https://issues.apache.org/jira/browse/CAMEL-19700
> Project: Camel
> Issue Type: Task
> Components: camel-yaml-dsl
> Affects Versions: 4.0-RC2
> Reporter: Tomohisa Igarashi
> Assignee: Tomohisa Igarashi
> Priority: Major
> Fix For: 4.1.0
>
>
> Currently the camel-yaml-dsl.json schema file doesn't have
> "additionalProperties: false" on each definitions. Since this property is
> "true" by default, if not explicitly specified to "false", schema validator
> allows arbitrary properties. In order to make this schema file work for
> validation, we'd want to add "additionalProperties: false" on every
> properties. The schema generator plugin already has that option.
> https://issues.apache.org/jira/browse/CAMEL-18829
--
This message was sent by Atlassian Jira
(v8.20.10#820010)