Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of non-empty nodes required to be empty shows misplaced diagnostics #147

Closed
fbricon opened this issue Sep 26, 2018 · 2 comments
Closed
Labels
bug Something isn't working validation
Milestone

Comments

@fbricon
Copy link
Contributor

fbricon commented Sep 26, 2018

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:camel="http://camel.apache.org/schema/spring"
    xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
          http://www.springframework.org/schema/beans/spring-beans-4.2.xsd  
          http://camel.apache.org/schema/spring 
          http://camel.apache.org/schema/spring/camel-spring.xsd
          http://www.springframework.org/schema/util 
          http://www.springframework.org/schema/util/spring-util-4.2.xsd">
 
    <camelContext xmlns="http://camel.apache.org/schema/spring">
            <!-- Add routes here -->
            <consumerTemplate camelContextId="1" maximumCacheSize="1">
            </consumerTemplate>
    </camelContext>
 
</beans>

has the closing bracket of </consumerTemplate> underlined with

cvc-complex-type.2.1: Element 'consumerTemplate' must have no character or element information item [children], because the type's content type is empty.

screen shot 2018-09-26 at 11 47 40 am

@fbricon fbricon added bug Something isn't working validation labels Sep 26, 2018
@angelozerr
Copy link
Contributor

Please retry and you should have code action too to fix it.

@fbricon
Copy link
Contributor Author

fbricon commented Sep 26, 2018

Works fine, thanks for the fix @angelozerr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validation
Projects
None yet
Development

No branches or pull requests

2 participants