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

handle parameter marshaling & change body marshaling #7

Closed
petri opened this issue Feb 23, 2017 · 0 comments
Closed

handle parameter marshaling & change body marshaling #7

petri opened this issue Feb 23, 2017 · 0 comments

Comments

@petri
Copy link
Member

petri commented Feb 23, 2017

YAML does a lot of basic type (de)marshaling for us. However this is not enough for complex data structures that need to be marshaled as JSON or XML.

The marshaling should take part after parametrization (of body and/or params) and added as an optional included step in the parametrization.

HTTP body marshaling indication should be changed to follow the same syntax as well.

Suggested syntax using type and valuekeys:

params:
  myparamname:
    type: JSON
    value: [{"a": 1}]

The implementation should allow for specifying default encodings for both body and params separately, thus allowing for omitting the extra type and value structure. In such a case marshaling nevertheless changes the body into the canonical form (having type and value)

petri added a commit that referenced this issue Feb 26, 2017
@petri petri closed this as completed Feb 26, 2017
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

1 participant