-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Parameter xsd and annotation #330
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
Parameter xsd and annotation #330
Conversation
f01c387
to
d920eb0
Compare
@ScienJus hello, can you add some cases for the xsd change, currently we do not have xsd cases in this project, but we write some cases in internal projects, an example is as below: @Test
public void test() throws Exception {
loadXml("XX.xml");
}
private void loadXml(String xml) throws Exception {
DocumentLoader documentLoader = new DefaultDocumentLoader();
documentLoader.loadDocument(new InputSource(this.getClass().getClassLoader()
.getResourceAsStream(xml)), new DelegatingEntityResolver(this.getClass()
.getClassLoader()), new DefaultErrorHandler(),
XmlValidationModeDetector.VALIDATION_XSD, true);
} Keep us noticed no matter whether you are convenient or not 😊. |
d920eb0
to
2afc57e
Compare
@straybirdzls just added a sample, please take a look. Do you need more cases? (such as a failed case?) |
@ScienJus great👍 I think one failed case will be better and enough,eg: |
@straybirdzls done. Note: when this PR is merged, we need to upgrade the sofa-boot version in the sofa-rpc-boot-projects to implement the part of sofa-rpc-boot-projects. |
I have deployed 2.6.0-SNAPSHOT to maven snapshot repo, you can continue your work. thx. |
see #309 and sofastack/sofa-rpc-boot-projects#136.