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 RAML schemas without JSON schema #56

Open
danascheider opened this issue May 29, 2016 · 0 comments
Open

Support RAML schemas without JSON schema #56

danascheider opened this issue May 29, 2016 · 0 comments

Comments

@danascheider
Copy link
Owner

danascheider commented May 29, 2016

Summary

In addition to JSON Schema, RAML provides the option of native RAML schemas and examples. Rambo should be able to generate examples - and Rambo-generated tests should be able to validate responses - written in native RAML instead of JSON Schema.

Expected Behavior

Rambo should generate tests, complete with appropriate examples and schema validation, off of RAML docs whether they use JSON Schema or RAML schemas/examples.

Current Behavior

Currently, all examples have to be written in JSON, and all schemas in JSON Schema, in order for Rambo and the tests it generates to work.

Possible Solution

Rambo could convert RAML schema to JSON schema, or may be able to do something simpler using the capabilities of the raml-rb gem. Will have to look into this further.

Context

In order to be most useful to Rambo's users, it should be flexible in what it requires of RAML files, accepting any RAML file and generating the appropriate tests. See also #57 . I am labeling this issue medium priority since it does not affect Repaymnt Estimatr or Mandolin.

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

No branches or pull requests

1 participant