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

Split choice elements into virtual attributes #1065

Closed
skinkie opened this issue Jul 25, 2024 · 3 comments
Closed

Split choice elements into virtual attributes #1065

skinkie opened this issue Jul 25, 2024 · 3 comments

Comments

@skinkie
Copy link
Contributor

skinkie commented Jul 25, 2024

Choice elements have been consolidated into single attributes. Under this single attribute a specific element is hosted to fulfill the xs:choice. Would it be possible to approach this from a different direction, being: all possible choices would be exposed as an attribute, where the attribute name is predictable?

Now:

choice1_choice2 = Choice1()

Requested the ability to:

choice1 = Choice1()
choice2 = None
@tefra
Copy link
Owner

tefra commented Jul 28, 2024

I don't get it @skinkie you can disable the compound fields if you don't care about ordering

@skinkie
Copy link
Contributor Author

skinkie commented Jul 28, 2024

I'll explore if disabling does what I am asking for. Due to the general approach in the schema I am using, ordered output is sometimes mandatory. Generally speaking if it is a list of choices, order must be adhered.

@skinkie
Copy link
Contributor Author

skinkie commented Aug 25, 2024

@tefra disabling compound fields is indeed what I am looking for. I'll open a new issue.

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

No branches or pull requests

2 participants