Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1e90823c
Commit
1e90823c
authored
Feb 13, 2018
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
godeps: bump go-openapi
parent
6e856480
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
62 additions
and
18 deletions
+62
-18
Godeps.json
Godeps/Godeps.json
+1
-1
Godeps.json
...ing/src/k8s.io/apiextensions-apiserver/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/apiserver/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/code-generator/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/kube-aggregator/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/sample-apiserver/Godeps/Godeps.json
+1
-1
expander.go
vendor/github.com/go-openapi/spec/expander.go
+0
-0
items.go
vendor/github.com/go-openapi/spec/items.go
+11
-1
operation.go
vendor/github.com/go-openapi/spec/operation.go
+26
-1
ref.go
vendor/github.com/go-openapi/spec/ref.go
+3
-0
schema.go
vendor/github.com/go-openapi/spec/schema.go
+16
-10
No files found.
Godeps/Godeps.json
View file @
1e90823c
...
@@ -1251,7 +1251,7 @@
...
@@ -1251,7 +1251,7 @@
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/spec"
,
"ImportPath"
:
"github.com/go-openapi/spec"
,
"Rev"
:
"
7abd5745472fff5eb3685386d5fb8bf38683154d
"
"Rev"
:
"
1de3e0542de65ad8d75452a595886fdd0befb363
"
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/strfmt"
,
"ImportPath"
:
"github.com/go-openapi/strfmt"
,
...
...
staging/src/k8s.io/apiextensions-apiserver/Godeps/Godeps.json
View file @
1e90823c
...
@@ -404,7 +404,7 @@
...
@@ -404,7 +404,7 @@
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/spec"
,
"ImportPath"
:
"github.com/go-openapi/spec"
,
"Rev"
:
"
7abd5745472fff5eb3685386d5fb8bf38683154d
"
"Rev"
:
"
1de3e0542de65ad8d75452a595886fdd0befb363
"
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/strfmt"
,
"ImportPath"
:
"github.com/go-openapi/strfmt"
,
...
...
staging/src/k8s.io/apiserver/Godeps/Godeps.json
View file @
1e90823c
...
@@ -388,7 +388,7 @@
...
@@ -388,7 +388,7 @@
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/spec"
,
"ImportPath"
:
"github.com/go-openapi/spec"
,
"Rev"
:
"
7abd5745472fff5eb3685386d5fb8bf38683154d
"
"Rev"
:
"
1de3e0542de65ad8d75452a595886fdd0befb363
"
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/swag"
,
"ImportPath"
:
"github.com/go-openapi/swag"
,
...
...
staging/src/k8s.io/code-generator/Godeps/Godeps.json
View file @
1e90823c
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/spec"
,
"ImportPath"
:
"github.com/go-openapi/spec"
,
"Rev"
:
"
7abd5745472fff5eb3685386d5fb8bf38683154d
"
"Rev"
:
"
1de3e0542de65ad8d75452a595886fdd0befb363
"
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/swag"
,
"ImportPath"
:
"github.com/go-openapi/swag"
,
...
...
staging/src/k8s.io/kube-aggregator/Godeps/Godeps.json
View file @
1e90823c
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/spec"
,
"ImportPath"
:
"github.com/go-openapi/spec"
,
"Rev"
:
"
7abd5745472fff5eb3685386d5fb8bf38683154d
"
"Rev"
:
"
1de3e0542de65ad8d75452a595886fdd0befb363
"
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/swag"
,
"ImportPath"
:
"github.com/go-openapi/swag"
,
...
...
staging/src/k8s.io/sample-apiserver/Godeps/Godeps.json
View file @
1e90823c
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/spec"
,
"ImportPath"
:
"github.com/go-openapi/spec"
,
"Rev"
:
"
7abd5745472fff5eb3685386d5fb8bf38683154d
"
"Rev"
:
"
1de3e0542de65ad8d75452a595886fdd0befb363
"
},
},
{
{
"ImportPath"
:
"github.com/go-openapi/swag"
,
"ImportPath"
:
"github.com/go-openapi/swag"
,
...
...
vendor/github.com/go-openapi/spec/expander.go
View file @
1e90823c
This diff is collapsed.
Click to expand it.
vendor/github.com/go-openapi/spec/items.go
View file @
1e90823c
...
@@ -28,6 +28,7 @@ type SimpleSchema struct {
...
@@ -28,6 +28,7 @@ type SimpleSchema struct {
Items
*
Items
`json:"items,omitempty"`
Items
*
Items
`json:"items,omitempty"`
CollectionFormat
string
`json:"collectionFormat,omitempty"`
CollectionFormat
string
`json:"collectionFormat,omitempty"`
Default
interface
{}
`json:"default,omitempty"`
Default
interface
{}
`json:"default,omitempty"`
Example
interface
{}
`json:"example,omitempty"`
}
}
func
(
s
*
SimpleSchema
)
TypeName
()
string
{
func
(
s
*
SimpleSchema
)
TypeName
()
string
{
...
@@ -178,9 +179,14 @@ func (i *Items) UnmarshalJSON(data []byte) error {
...
@@ -178,9 +179,14 @@ func (i *Items) UnmarshalJSON(data []byte) error {
if
err
:=
json
.
Unmarshal
(
data
,
&
simpleSchema
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
(
data
,
&
simpleSchema
);
err
!=
nil
{
return
err
return
err
}
}
var
vendorExtensible
VendorExtensible
if
err
:=
json
.
Unmarshal
(
data
,
&
vendorExtensible
);
err
!=
nil
{
return
err
}
i
.
Refable
=
ref
i
.
Refable
=
ref
i
.
CommonValidations
=
validations
i
.
CommonValidations
=
validations
i
.
SimpleSchema
=
simpleSchema
i
.
SimpleSchema
=
simpleSchema
i
.
VendorExtensible
=
vendorExtensible
return
nil
return
nil
}
}
...
@@ -198,7 +204,11 @@ func (i Items) MarshalJSON() ([]byte, error) {
...
@@ -198,7 +204,11 @@ func (i Items) MarshalJSON() ([]byte, error) {
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
return
swag
.
ConcatJSON
(
b3
,
b1
,
b2
),
nil
b4
,
err
:=
json
.
Marshal
(
i
.
VendorExtensible
)
if
err
!=
nil
{
return
nil
,
err
}
return
swag
.
ConcatJSON
(
b4
,
b3
,
b1
,
b2
),
nil
}
}
// JSONLookup look up a value by the json property name
// JSONLookup look up a value by the json property name
...
...
vendor/github.com/go-openapi/spec/operation.go
View file @
1e90823c
...
@@ -31,11 +31,36 @@ type OperationProps struct {
...
@@ -31,11 +31,36 @@ type OperationProps struct {
ExternalDocs
*
ExternalDocumentation
`json:"externalDocs,omitempty"`
ExternalDocs
*
ExternalDocumentation
`json:"externalDocs,omitempty"`
ID
string
`json:"operationId,omitempty"`
ID
string
`json:"operationId,omitempty"`
Deprecated
bool
`json:"deprecated,omitempty"`
Deprecated
bool
`json:"deprecated,omitempty"`
Security
[]
map
[
string
][]
string
`json:"security,omitempty"`
Security
[]
map
[
string
][]
string
`json:"security,omitempty"`
//Special case, see MarshalJSON function
Parameters
[]
Parameter
`json:"parameters,omitempty"`
Parameters
[]
Parameter
`json:"parameters,omitempty"`
Responses
*
Responses
`json:"responses,omitempty"`
Responses
*
Responses
`json:"responses,omitempty"`
}
}
// MarshalJSON takes care of serializing operation properties to JSON
//
// We use a custom marhaller here to handle a special cases related
// the Security field. We need to preserve zero length slice
// while omiting the field when the value is nil/unset.
func
(
op
OperationProps
)
MarshalJSON
()
([]
byte
,
error
)
{
type
Alias
OperationProps
if
op
.
Security
==
nil
{
return
json
.
Marshal
(
&
struct
{
Security
[]
map
[
string
][]
string
`json:"security,omitempty"`
*
Alias
}{
Security
:
op
.
Security
,
Alias
:
(
*
Alias
)(
&
op
),
})
}
return
json
.
Marshal
(
&
struct
{
Security
[]
map
[
string
][]
string
`json:"security"`
*
Alias
}{
Security
:
op
.
Security
,
Alias
:
(
*
Alias
)(
&
op
),
})
}
// Operation describes a single API operation on a path.
// Operation describes a single API operation on a path.
//
//
// For more information: http://goo.gl/8us55a#operationObject
// For more information: http://goo.gl/8us55a#operationObject
...
...
vendor/github.com/go-openapi/spec/ref.go
View file @
1e90823c
...
@@ -145,7 +145,10 @@ func (r *Ref) UnmarshalJSON(d []byte) error {
...
@@ -145,7 +145,10 @@ func (r *Ref) UnmarshalJSON(d []byte) error {
if
err
:=
json
.
Unmarshal
(
d
,
&
v
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
(
d
,
&
v
);
err
!=
nil
{
return
err
return
err
}
}
return
r
.
fromMap
(
v
)
}
func
(
r
*
Ref
)
fromMap
(
v
map
[
string
]
interface
{})
error
{
if
v
==
nil
{
if
v
==
nil
{
return
nil
return
nil
}
}
...
...
vendor/github.com/go-openapi/spec/schema.go
View file @
1e90823c
...
@@ -135,6 +135,10 @@ func (r *SchemaURL) UnmarshalJSON(data []byte) error {
...
@@ -135,6 +135,10 @@ func (r *SchemaURL) UnmarshalJSON(data []byte) error {
if
err
:=
json
.
Unmarshal
(
data
,
&
v
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
(
data
,
&
v
);
err
!=
nil
{
return
err
return
err
}
}
return
r
.
fromMap
(
v
)
}
func
(
r
*
SchemaURL
)
fromMap
(
v
map
[
string
]
interface
{})
error
{
if
v
==
nil
{
if
v
==
nil
{
return
nil
return
nil
}
}
...
@@ -582,18 +586,17 @@ func (s Schema) MarshalJSON() ([]byte, error) {
...
@@ -582,18 +586,17 @@ func (s Schema) MarshalJSON() ([]byte, error) {
// UnmarshalJSON marshal this from JSON
// UnmarshalJSON marshal this from JSON
func
(
s
*
Schema
)
UnmarshalJSON
(
data
[]
byte
)
error
{
func
(
s
*
Schema
)
UnmarshalJSON
(
data
[]
byte
)
error
{
var
sch
Schema
props
:=
struct
{
if
err
:=
json
.
Unmarshal
(
data
,
&
sch
.
SchemaProps
);
err
!=
nil
{
SchemaProps
SwaggerSchemaProps
}{}
if
err
:=
json
.
Unmarshal
(
data
,
&
props
);
err
!=
nil
{
return
err
return
err
}
}
if
err
:=
json
.
Unmarshal
(
data
,
&
sch
.
Ref
);
err
!=
nil
{
return
err
sch
:=
Schema
{
}
SchemaProps
:
props
.
SchemaProps
,
if
err
:=
json
.
Unmarshal
(
data
,
&
sch
.
Schema
);
err
!=
nil
{
SwaggerSchemaProps
:
props
.
SwaggerSchemaProps
,
return
err
}
if
err
:=
json
.
Unmarshal
(
data
,
&
sch
.
SwaggerSchemaProps
);
err
!=
nil
{
return
err
}
}
var
d
map
[
string
]
interface
{}
var
d
map
[
string
]
interface
{}
...
@@ -601,6 +604,9 @@ func (s *Schema) UnmarshalJSON(data []byte) error {
...
@@ -601,6 +604,9 @@ func (s *Schema) UnmarshalJSON(data []byte) error {
return
err
return
err
}
}
sch
.
Ref
.
fromMap
(
d
)
sch
.
Schema
.
fromMap
(
d
)
delete
(
d
,
"$ref"
)
delete
(
d
,
"$ref"
)
delete
(
d
,
"$schema"
)
delete
(
d
,
"$schema"
)
for
_
,
pn
:=
range
swag
.
DefaultJSONNameProvider
.
GetJSONNames
(
s
)
{
for
_
,
pn
:=
range
swag
.
DefaultJSONNameProvider
.
GetJSONNames
(
s
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment