Skip to content

add headers in desc support#48

Open
Skipper1992 wants to merge 3 commits into
elixir-maru:masterfrom
Skipper1992:master
Open

add headers in desc support#48
Skipper1992 wants to merge 3 commits into
elixir-maru:masterfrom
Skipper1992:master

Conversation

@Skipper1992

Copy link
Copy Markdown

No description provided.

@falood

falood commented Feb 9, 2017

Copy link
Copy Markdown
Member

Thank you, it's a good idea!
I think we can not just make header a part of description, we can make it works as the same as params, parse parameters from header and generate document.
The DSL should be like this:

desc "this is description" 
header do
  requires :session_id, type: String
end
params do
  requires :param1, type: Integer
end
post do
  ...
end

@jalcine

jalcine commented Oct 14, 2017

Copy link
Copy Markdown
Contributor

Hey @Skipper1992; are you considering incorporating the feedback above?

@jalcine

jalcine commented Apr 26, 2018

Copy link
Copy Markdown
Contributor

It looks like this was slightly abandoned. If you're cool with it @falood, I can re-open a new PR for this.

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

Successfully merging this pull request may close these issues.

3 participants