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

Date validation through XSD [SWS-1011] #1081

Open
gregturn opened this issue Jan 26, 2018 · 0 comments
Open

Date validation through XSD [SWS-1011] #1081

gregturn opened this issue Jan 26, 2018 · 0 comments

Comments

@gregturn
Copy link
Member

@gregturn gregturn commented Jan 26, 2018

rajashekar thatipamula opened SWS-1011 and commented

we are developing REST web services,as part of this we are validating each XSD field.

We have Date field in the XSD and Date format is "yyyy-mm-dd hh:mm:ss" and using DateAdapter and XMLFormatDateTimeAdapter to convert the XSD to domain object(i.e DTO obkects).

But the problem here is when we are passing the date format other than above mentioned the dateadapet is consider it as null.finally null value is storing in date field.

but the expected scenario is if we pass other format of date the adapter class needs to throgh the error.

please suggest me what would be solution to resolve this issue.


No further details from SWS-1011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant