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

Fix overwriting security definitions on call Server.SetAPI() #2140

Merged
merged 6 commits into from
Dec 26, 2019

Conversation

h0mjam
Copy link
Contributor

@h0mjam h0mjam commented Dec 20, 2019

On call Server.SetAPI() trigger internal function configureAPI() which is overwrite above defined (into api object) secirutyDefinitions

@codecov
Copy link

codecov bot commented Dec 20, 2019

Codecov Report

Merging #2140 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2140   +/-   ##
=======================================
  Coverage   80.11%   80.11%           
=======================================
  Files          47       47           
  Lines        8254     8254           
=======================================
  Hits         6613     6613           
  Misses       1122     1122           
  Partials      519      519

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c73310d...f4d5867. Read the comment docs.

Signed-off-by: v.votinov <v.votinov@xsolla.com>
@h0mjam h0mjam force-pushed the fix-overwrite-secutiry-definition branch from 8ca9ed5 to 2ad3fba Compare December 20, 2019 08:07
@casualjim
Copy link
Member

can you run go generate ./generator so that your template changes are picked up by the build?

Signed-off-by: v.votinov <v.votinov@xsolla.com>
@h0mjam h0mjam force-pushed the fix-overwrite-secutiry-definition branch from 5074009 to ecce65d Compare December 22, 2019 04:18
@h0mjam
Copy link
Contributor Author

h0mjam commented Dec 22, 2019

Done go generate ./generator

@h0mjam
Copy link
Contributor Author

h0mjam commented Dec 23, 2019

@casualjim, hi! Can review PR?

Copy link
Contributor

@fredbi fredbi left a comment

Choose a reason for hiding this comment

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

Great job!
Just a few nitpicks on bindata version. Apologies: we sure should have warned you beforehand.

generator/bindata.go Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
@h0mjam h0mjam force-pushed the fix-overwrite-secutiry-definition branch from c95771e to e6acd6c Compare December 26, 2019 05:26
@h0mjam h0mjam requested a review from fredbi December 26, 2019 06:53
@fredbi
Copy link
Contributor

fredbi commented Dec 26, 2019

@h0mjam we are just a commit signature away... Hang on, this all looks good to me.

Signed-off-by: v.votinov <v.votinov@xsolla.com>
@h0mjam h0mjam force-pushed the fix-overwrite-secutiry-definition branch from e6acd6c to f4d5867 Compare December 26, 2019 13:05
@casualjim casualjim merged commit 08c07a0 into go-swagger:master Dec 26, 2019
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.

4 participants