cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vjacheslav V. Borisov" <slav...@gmail.com>
Subject Re: Json - schema validation - JacksonProvider+JAXBElementProvider / JSONProvider
Date Fri, 26 Aug 2016 10:38:34 GMT
2016-08-26 13:41 GMT+04:00 J. Fiala <modsec@fwd.at>:

> No, it works with and without namespace :).
>
> Thx so I better stay with JacksonProvider with manual BeanValidation for
> now until wadljava+@Valid or do you actually recommend using
> MoxyJsonProvider in favor of JacksonProvider (cxf-docs about
> MoxyJsonProvider seems to be scarce for now...)?
>

I am using xsd validation for JSON
but it think xsd validation  for json with it's strict xsd:element order in
xsd:sequence  is not very comfortable

and it also requires special settings, like includeRoot, attributePrefix,
namespace prefixes
it is not usable with regular json
{
  "prop":"value"
}



So I want to try JSR-303

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message