You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although Rambo is an opinionated tool and its opinion is that REST > SOAP, the reality is that sometimes our users will simply need to handle XML - especially, they will need to accept XML requests. Rambo currently has no functionality supporting XML and would raise ugly errors if the generator were to be run against a RAML file including XML or XML Schema. Rambo should accept and generate XML as needed.
Expected Behavior
When given a document with XML or XML Schema, Rambo should handle these formats as well as it handles JSON. This would include not only creating and destroying XML files when required, but also generating XML from XML Schema to make requests.
Current Behavior
Rambo assumes that all schemas and examples are in JSON format, going so far as to create all example and schema files with the .json extension without checking the actual file format, as well as calling .to_json in the generated tests without checking the actual data type.
Context
We are developing the Rambo MVP against Repaymnt Estimatr, a proprietary app owned by my employer, which is sponsoring the Rambo project. Now that the MVP is wrapping up, we are setting our sights on a second app, Mandolin. Mandolin accepts JSON request bodies and returns XML responses. This is not how I would prefer that it be done, but it is what is being handed to me.
The text was updated successfully, but these errors were encountered:
Summary
Although Rambo is an opinionated tool and its opinion is that REST > SOAP, the reality is that sometimes our users will simply need to handle XML - especially, they will need to accept XML requests. Rambo currently has no functionality supporting XML and would raise ugly errors if the generator were to be run against a RAML file including XML or XML Schema. Rambo should accept and generate XML as needed.
Expected Behavior
When given a document with XML or XML Schema, Rambo should handle these formats as well as it handles JSON. This would include not only creating and destroying XML files when required, but also generating XML from XML Schema to make requests.
Current Behavior
Rambo assumes that all schemas and examples are in JSON format, going so far as to create all example and schema files with the
.json
extension without checking the actual file format, as well as calling.to_json
in the generated tests without checking the actual data type.Context
We are developing the Rambo MVP against Repaymnt Estimatr, a proprietary app owned by my employer, which is sponsoring the Rambo project. Now that the MVP is wrapping up, we are setting our sights on a second app, Mandolin. Mandolin accepts JSON request bodies and returns XML responses. This is not how I would prefer that it be done, but it is what is being handed to me.
The text was updated successfully, but these errors were encountered: