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

Support for named fields in operation signatures #3

Open
SamCooper opened this issue Oct 9, 2014 · 0 comments
Open

Support for named fields in operation signatures #3

SamCooper opened this issue Oct 9, 2014 · 0 comments
Assignees
Labels
Proposed R2 Proposed for R2 of Magenta Book

Comments

@SamCooper
Copy link
Owner

Arguments to MAL operations can now be specified as named fields rather than just type information, i.e. from this:

<mal:submit>
  <mal:type name="Boolean" area="MAL"/>
  <mal:type list="true" name="InstanceBooleanPair" area="COM"/>
</mal:submit>

to this:

<mal:submit>
  <mal:field name="isGroupIds">
    <mal:type name="Boolean" area="MAL"/>
  </mal:field>
  <mal:field name="enableInstance">
    <mal:type list="true" name="InstanceBooleanPair" area="COM"/>
  </mal:field>
</mal:submit>

The name should be reflected in the generated API, especially in the get/set methods in the compound return classes.

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

No branches or pull requests

2 participants