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

Add helper methods for defining parameters #21

Open
drewish opened this issue Oct 3, 2016 · 0 comments
Open

Add helper methods for defining parameters #21

drewish opened this issue Oct 3, 2016 · 0 comments

Comments

@drewish
Copy link
Owner

drewish commented Oct 3, 2016

You can get some really long parameter definitions that don't fit well on one line:

parameter 'body', in: :body, required: true, schema: { allOf: [ { ref: '#/definitions/CouponCreateOnly' },  { ref: '#/definitions/CouponUpdatable' } ] }

It would be nicer to have the option to do:

parameter 'body' do
  in :body
  required true
  schema {
    allOf: [ 
      { ref: '#/definitions/CouponCreateOnly' },
      { ref: '#/definitions/CouponUpdatable' } ] }
end
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