mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Bye bye openapi (#1081)
* add DateTime sans mgo * change all uses of strfmt.DateTime to common.DateTime, remove test strfmt usage * remove api tests, system-test dep on api test multiple reasons to remove the api tests: * awkward dependency with fn_go meant generating bindings on a branched fn to vendor those to test new stuff. this is at a minimum not at all intuitive, worth it, nor a fun way to spend the finite amount of time we have to live. * api tests only tested a subset of functionality that the server/ api tests already test, and we risk having tests where one tests some thing and the other doesn't. let's not. we have too many test suites as it is, and these pretty much only test that we updated the fn_go bindings, which is actually a hassle as noted above and the cli will pretty quickly figure out anyway. * fn_go relies on openapi, which relies on mgo, which is deprecated and we'd like to remove as a dependency. openapi is a _huge_ dep built in a NIH fashion, that cannot simply remove the mgo dep as users may be using it. we've now stolen their date time and otherwise killed usage of it in fn core, for fn_go it still exists but that's less of a problem. * update deps removals: * easyjson * mgo * go-openapi * mapstructure * fn_go * purell * go-validator also, had to lock docker. we shouldn't use docker on master anyway, they strongly advise against that. had no luck with latest version rev, so i locked it to what we were using before. until next time. the rest is just playing dep roulette, those end up removing a ton tho * fix exec test to work * account for john le cache
This commit is contained in:
17
vendor/google.golang.org/api/poly/v1/poly-api.json
generated
vendored
17
vendor/google.golang.org/api/poly/v1/poly-api.json
generated
vendored
@@ -51,11 +51,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@@ -76,12 +71,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@@ -301,7 +290,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180217",
|
||||
"revision": "20180610",
|
||||
"rootUrl": "https://poly.googleapis.com/",
|
||||
"schemas": {
|
||||
"Asset": {
|
||||
@@ -689,6 +678,10 @@
|
||||
"description": "Hints for displaying the asset, based on information available when the asset\nwas uploaded.",
|
||||
"id": "PresentationParams",
|
||||
"properties": {
|
||||
"backgroundColor": {
|
||||
"description": "A background color which could be used for displaying the 3D asset in a\n'thumbnail' or 'palette' style view. Authors have the option to set this\nbackground color when publishing or editing their asset.\n\nThis is represented as a six-digit hexademical triplet specifying the\nRGB components of the background color, e.g. #FF0000 for Red.",
|
||||
"type": "string"
|
||||
},
|
||||
"colorSpace": {
|
||||
"description": "The materials' diffuse/albedo color. This does not apply to vertex colors\nor texture maps.",
|
||||
"enum": [
|
||||
|
||||
26
vendor/google.golang.org/api/poly/v1/poly-gen.go
generated
vendored
26
vendor/google.golang.org/api/poly/v1/poly-gen.go
generated
vendored
@@ -722,6 +722,17 @@ func (s *ObjParseError) MarshalJSON() ([]byte, error) {
|
||||
// information available when the asset
|
||||
// was uploaded.
|
||||
type PresentationParams struct {
|
||||
// BackgroundColor: A background color which could be used for
|
||||
// displaying the 3D asset in a
|
||||
// 'thumbnail' or 'palette' style view. Authors have the option to set
|
||||
// this
|
||||
// background color when publishing or editing their asset.
|
||||
//
|
||||
// This is represented as a six-digit hexademical triplet specifying
|
||||
// the
|
||||
// RGB components of the background color, e.g. #FF0000 for Red.
|
||||
BackgroundColor string `json:"backgroundColor,omitempty"`
|
||||
|
||||
// ColorSpace: The materials' diffuse/albedo color. This does not apply
|
||||
// to vertex colors
|
||||
// or texture maps.
|
||||
@@ -762,7 +773,7 @@ type PresentationParams struct {
|
||||
// Please note: this is applicable only to the gLTF.
|
||||
OrientingRotation *Quaternion `json:"orientingRotation,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ColorSpace") to
|
||||
// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
@@ -770,12 +781,13 @@ type PresentationParams struct {
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "ColorSpace") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
// NullFields is a list of field names (e.g. "BackgroundColor") to
|
||||
// include in API requests with the JSON null value. By default, fields
|
||||
// with empty values are omitted from API requests. However, any field
|
||||
// with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user