Giter Site home page Giter Site logo

vdx's People

Contributors

jamezp avatar jcrossley3 avatar kabir avatar tobias avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mnovak1 jamezp kabir

vdx's Issues

Better detect duplicate attribute errors

Some WildFly parsers have code to detect duplicate attributes, but that code is never called, since the stax parser will throw before then when it sees a dupe. VDX shouldn't treat that as an unknown error.

Use location in doc to verify correct element in schema for alternates

In the standalone.xml logging subsystem, the formatter element has a different type, depending on where it is located. This causes vdx to report name as an alternate attribute, even when it's not. We should be able to find the correct formatter in the schema given the source doc and location in the doc.

Provide way to differentiate elements reused across namespaces

A couple of options:

  • allow setting a class that toStrings the elements, and it could decide to use the full QName (or variant thereof) or not
  • auto-detect elements used across namespaces, and differentiate them automatically (maybe constrained to the same parent element)

detect misspelled elements

This requires knowing the current parent element so we can search the schema for legal children of that element to compare against.

Strip prefix whitespace

To reduce the width of the output. For example:

====================== Validation Error in standalone.xml ======================

 89:             </console-handler>
 90:             <periodic-rotating-file-handler name="FILE" autoflush="true"
 91:                                             category="WARN">

                                                 ^ 'category' isn't an allowed attribute for the 'periodic-rotating-file-handler' element

 92:                 <formatter>
 93:                     <named-formatter name="PATTERN"/>
 94:                 </formatter>

'category' is allowed on elements: subsystem > logger, subsystem > logging-profiles > logging-profile > logger
Did you intend to put it on one of those elements?

================================================================================

should be:

====================== Validation Error in standalone.xml ======================

 89: </console-handler>
 90: <periodic-rotating-file-handler name="FILE" autoflush="true"
 91:                                 category="WARN">

                                     ^ 'category' isn't an allowed attribute for the 'periodic-rotating-file-handler' element

 92:     <formatter>
 93:         <named-formatter name="PATTERN"/>
 94:     </formatter>

'category' is allowed on elements: subsystem > logger, subsystem > logging-profiles > logging-profile > logger
Did you intend to put it on one of those elements?

================================================================================

VDX and empty config file - regression in printed message (null instead of Index: 0, Size: 0)

I played a bit with latest WF build (https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastFinished/wildfly-11.0.0.Alpha1-SNAPSHOT.zip) and noticed regression in SmokeStandaloneTestCase#emptyConfigFile - https://github.com/jboss-eap-qe/vdx-wildfly-testsuite/blob/master/src/test/java/org/wildfly/test/integration/vdx/standalone/SmokeStandaloneTestCase.java#L88.

Older: OPVDX002: Failed to pretty print validation error: Index: 0, Size: 0
Latest: OPVDX002: Failed to pretty print validation error: null

I'm sure it's in VDX 1.1.4 as I patched older build (which was using VDX 1.1.3) with new VDX and the issue appeared too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.