-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add XSD file for validation #2594
base: master
Are you sure you want to change the base?
Conversation
@juherr - If you find some time please help let me know your thoughts on the two questions i posted. Post which I think we can get this PR merged. |
@krmahadevan sure. But I don't see them. Did you finish the review? |
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element ref="groups" minOccurs="0"/> | ||
<xsd:choice minOccurs="0" maxOccurs="unbounded"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juherr - Am assuming that we built this xsd on an as-is basis from the DTD. Should we move the below tags out from the minOccurs
because I am not sure if anyone would give a value like this :
<listeners>
<listener class-name="foo"/>
</listeners>
<listeners>
<listener class-name="bar"/>
</listeners>
- listeners
- packages
- method-selectors
- suite-files
ideally speaking these elements are supposed to be present only once per <suite>
tag.
WDYT ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree!
The dtd to xsd migration was not perfect and I missed things for sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you migrated this by hand is it ? I also tried some tool but it showed a lot of errors when i attempted to open up the generated xsd in visual studio code.
Are you going to be fixing this or we circle back to this later and for now go ahead with having an XSD as a starting point ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used a tool for the generation but I had to fix it by hand.
I will adapt according to your remarks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juherr - If we put all the <xsd:element>
within <xsd:choice>
which has a min and max set, doesnt it mean that these tags can be repeated multiple number of times ? I dont see the same thing done for <xsd:element ref="groups">
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
I think groups
should be added to the choice too.
I will try different options.
My bad. Forgot that. Now I finished it. |
@krmahadevan Please check the description again before merging. |
TODO: generate POJO from XSD. |
Upgrade versions
@juherr - Can you please fix the merge conflict ? We can merge this after that. |
ping @juherr |
I am doing my best to close it asap ;) |
CHANGES.txt
TODO: