[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [dss-x] DSS-JSON binding
Hi Stefan, ah, you got eagle eyes! Yes, I guess this is a (known) bug in the JAXB implementation. You have to annotate each and every element to support the leading capital letter we used in the XML schema to be supported in JAXB. According to the Java beans spec it defaults to leading lowercase letters. But strangely a few object have _both_ mappings, upper- and lower-case! What concerns me more about the current schema is that it simply a model from a plain request. There are no objects and references in it. That's not very handy! I'll have to dig into JAXB as the object model knows about the objects and their annotations! Greetings, Andreas > Hi guys, > > thanks a lot for providing initial draft and first comments! > > I skimmed through this skeleton and just a nit: > > What is the difference of below two entries in: > > DSSSchema["properties"]["OptionalInputs"]["properties"]["KeySelector"]["properties"]["KeyInfo"]["properties"]["KeyInfo"]["properties"]["spkidata"]["items"]["properties"] > > """ > "spkisexp":{ > "type":"array", > "items":{ > "type":"array", > "items":{ > "type":"string" > } > } > }, > "SPKISexp":{ > "type":"array", > "items":{ > "type":"array", > "items":{ > "type":"string" > } > } > } > """ > > > > All the best, > Stefan. > On 28/11/16 10:39, Juan Carlos Cruellas wrote: >> Dear Andreas, >> >> Thank you very much. I have not much experience on JSON so far. What I >> see is that it could be useful to include comments (I have seen that >> there are JSON schema components for adding comments) to make it more >> understable and make it clear where the definitions of the different >> types start and end. >> >> As for the contents itself, would say that when the DSS specified the >> XML schema it thought about the relevant elements required for meeting a >> number of good requirements for detailing some of the componentes of the >> signatures, and it seems to be appropiate to keep them in JSON... >> >> Regards >> Juan Carlos. >> El 28/11/16 a las 10:04, Andreas Kuehne escribió: >>> Hi all, >>> >>> see my draft on a JSON binding attached. >>> >>> A JSON schema created by the JAXB framework is attached, but the >>> expressiveness and readability leaves room for improvements. Does >>> anyone has experience in deriving a readable JSON schema from a given >>> JSON sample or a XML schema? >>> >>> Moreover, did the dust settle for an agreed JSON schema format? >>> >>> >>> Greetings, >>> >>> >>> Andreas >>> -- Andreas Kühne phone: +49 177 293 24 97 mailto: kuehne@trustable.de Trustable Ltd. Niederlassung Deutschland Gartenheimstr. 39C - 30659 Hannover Amtsgericht Hannover HRB 212612 Director Andreas Kühne Company UK Company No: 5218868 Registered in England and Wales
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]