Skip to content

Conversation

@galaxie
Copy link

@galaxie galaxie commented Aug 4, 2016

Для получения информации о мерчанте в обработчики запросов нужно отправлять контекст из авторизационного токена

group_paths() ->
maps:fold(
fun(OperationID, #{path := Path, method := Method, handler := Handler}, Acc) ->
case maps:find(Path, Acc) of
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. С maps:update_with/4 не проще получится?
  2. Зачем ты мешаешь в одном выражении maps:put/3 и выражения для создания мап?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c maps:update_with/4 не получилось проще

@galaxie galaxie force-pushed the CAPI-23/ft/auth_context_handling branch from 45589d3 to b51d8bb Compare August 11, 2016 15:53
CAPI-34 Add an opportunity to pass custom middlewares to the server
@galaxie
Copy link
Author

galaxie commented Aug 11, 2016

@keynslug Перепилено

@keynslug
Copy link

:shipit:

@galaxie galaxie merged commit 10e9b59 into master Aug 12, 2016
galaxie added a commit that referenced this pull request Jan 20, 2017
* Initial erlang generation

* Recfactor erlang codegen to make a minimal working example

* ft/erlang_codegen Separate handlers by resourse, add minor codegen fixes and refactoring

* Test commit

* ft/erlang_codegen Modify reouting generation

* ft/erlang_codegen Remove parsed request concept. Add minor refactoring and bugfixes

* ft/erlang_codegen Use swagger spec from an internal directory instead of a provided path

* ft/erlang_codegen Add basic response validation

* ft/erlang_codegen Moved all the req validators to a separate file for test needs

* ft/erlang_codegen Add basic param validation

* Add refactoring:
OperationIDs are atoms now
Fix schema validation
Add todo list

* CAPI-23 Add auth context to request handling (#2)

* CAPI-23 Fix routing to support different paths in one handler. Add auth context to request handling. Add an opportunity to pass custom middlewares to the server

* CAPI-31 Add enum validation and some minor fixes (#4)

* CAPI-31 Fix turbo fuck up with additional params (#5)

* Capi 23/fix/basic logging (#6)

* CAPI-23 Add understandable messages in case of bad requests. Add specs to shut up dialyzer and add some minor code refactoring

* CAPI-23 Fix missed bracket in auth module (#7)
galaxie added a commit that referenced this pull request Jan 20, 2017
* CAPI-23 Fix routing to support different paths in one handler. Add auth context to request handling. Add an opportunity to pass custom middlewares to the server
@arentrue arentrue deleted the CAPI-23/ft/auth_context_handling branch May 24, 2017 14:50
keynslug pushed a commit to keynslug/swagger-codegen that referenced this pull request Aug 8, 2017
* Rewrite of Go Client

* Revert to older version of context.Context

* Clean and bulk up concurrency test.

* Correct {{path}} to {{{path}}}

* change custom date type to string.

* Add APIKey authentication

* Correct missing line from resolving conflicts.

Correct missing line from resolving conflicts.
arentrue added a commit that referenced this pull request Oct 23, 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

Successfully merging this pull request may close these issues.

3 participants