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

Abstract / Base didn't work #68

Closed
ximex opened this issue Mar 27, 2015 · 4 comments
Closed

Abstract / Base didn't work #68

ximex opened this issue Mar 27, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@ximex
Copy link

ximex commented Mar 27, 2015

XSD: http://data.bka.gv.at/RIS/XSD/OGD_Request.xsd

there is a complex type SearchExpression (<xsd:complexType name="SearchExpression" abstract="true"/>) that is abstract and have some possible complex types to use:

  • PhraseSearchExpression
  • TermSearchExpression
  • NotSearchExpression
  • BooleanSearchExpression

if i try to convert an XML to JSON with a Titel, Index, Suchworte with a <value> element i got an error.

I try to get more infos tomorrow

@highsource
Copy link
Owner

Please check in a reproducible test case here:

https://github.com/highsource/jsonix-support/tree/master/r/ris-bka

I've just added a very rough project structure. Please fix compilation and add a test case in tests (fix mappings in ris-bka.js) and add XML examples to tests.

I'll use it to debug and make sure it works at the end.

@highsource highsource added the bug label Mar 27, 2015
@highsource highsource added this to the 2.1.5 milestone Mar 27, 2015
@highsource highsource self-assigned this Mar 27, 2015
@highsource
Copy link
Owner

See highsource/jsonix-support#3.

@highsource
Copy link
Owner

I'd need a sample XML for this but as it looks like, you probably need support for xsi:type here. And for that the mappings must contain qualified XML Schema type names. See #70, #61, highsource/jsonix-schema-compiler#29. Unfortunately, not so easy. :(

@highsource
Copy link
Owner

@ximex This must be solved in Jsonix 2.2.1 and Jsonix Schema Compiler 2.3.3.

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

No branches or pull requests

2 participants