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

changes for go-swagger #2054 - extension fields in info.contact do no… #113

Merged
merged 14 commits into from
Feb 2, 2020

Conversation

kul-amr
Copy link
Contributor

@kul-amr kul-amr commented Jan 9, 2020

This is part of bug fix for go-swagger/go-swagger#2054. This fix will include extension/custom fields from Contact and License to the spec served by the generated server.

@@ -14,11 +14,41 @@

package spec

import (
"encoding/json"

Choose a reason for hiding this comment

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

File is not goimports-ed (from goimports)

Suggested change
"encoding/json"
"encoding/json"

@@ -14,10 +14,40 @@

package spec

import (
"encoding/json"

Choose a reason for hiding this comment

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

File is not goimports-ed (from goimports)

Suggested change
"encoding/json"
"encoding/json"

@@ -15,24 +15,33 @@
package spec

import (
"encoding/json"
"github.com/stretchr/testify/assert"

Choose a reason for hiding this comment

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

File is not goimports-ed (from goimports)

Suggested change
"github.com/stretchr/testify/assert"

@codecov
Copy link

codecov bot commented Jan 9, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@901ea3c). Click here to learn what that means.
The diff coverage is 55.17%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #113   +/-   ##
=========================================
  Coverage          ?   58.42%           
=========================================
  Files             ?       24           
  Lines             ?     2189           
  Branches          ?        0           
=========================================
  Hits              ?     1279           
  Misses            ?      736           
  Partials          ?      174
Impacted Files Coverage Δ
ref.go 48.83% <ø> (ø)
schema_loader.go 91.04% <100%> (ø)
license.go 50% <50%> (ø)
contact_info.go 50% <50%> (ø)
expander.go 73.54% <75%> (ø)

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 901ea3c...0e75b9f. Read the comment docs.

kul-amr and others added 12 commits January 13, 2020 11:31
…t propagate to embedded spec

Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
…t propagate to embedded spec

Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
…r_2054_spec

Signed-off-by: Amruta Kulkarni <amruta9.kulkarni@gmail.com>
From last commit at OAI/OpenAPI-Specification@88cd944.

Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
`~/go/bin/go-bindata -pkg spec -prefix schemas schemas/jsonschema-draft-04.json schemas/v2/schema.json`

Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
This PR bumbs go-yaml to v2.2.4, which has the ddos vulnerability fixed.

Issue:
go-yaml preceding 2.2.4 had vulnerability to ddos attack via billion
laughs bomb.
Such attack lead to program to be unresponsive.
Issue has been described in
https://raesene.github.io/blog/2019/10/15/From-stackoverflow-to-CVE/

Signed-off-by: Petr Kotas <petr.kotas@gmail.com>
Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
Fixes ref rebasing when following nested $ref in Paths section

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
…t propagate to embedded spec

Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
…t propagate to embedded spec

Signed-off-by: kul-amr <amruta9.kulkarni@gmail.com>
@casualjim
Copy link
Member

can you run: goimports -w $(find . -name '*.go')

@casualjim casualjim merged commit 3f46044 into go-openapi:master Feb 2, 2020
ohtake added a commit to ohtake/go-restful that referenced this pull request Feb 13, 2020
Fix examples to follow breaking changes in go-openapi/spec#113
emicklei pushed a commit to emicklei/go-restful that referenced this pull request Feb 16, 2020
Fix examples to follow breaking changes in go-openapi/spec#113
emicklei pushed a commit to emicklei/go-restful that referenced this pull request Feb 16, 2020
Fix examples to follow breaking changes in go-openapi/spec#113
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.

None yet

6 participants