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:
35
vendor/google.golang.org/api/firebaserules/v1/firebaserules-api.json
generated
vendored
35
vendor/google.golang.org/api/firebaserules/v1/firebaserules-api.json
generated
vendored
@@ -65,11 +65,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@@ -90,12 +85,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.",
|
||||
@@ -481,7 +470,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180124",
|
||||
"revision": "20180605",
|
||||
"rootUrl": "https://firebaserules.googleapis.com/",
|
||||
"schemas": {
|
||||
"Arg": {
|
||||
@@ -847,6 +836,13 @@
|
||||
"Test is a failure."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"visitedExpressions": {
|
||||
"description": "The set of visited expressions for a given test. This returns positions\nand evaluation results of all visited expressions.",
|
||||
"items": {
|
||||
"$ref": "VisitedExpression"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -916,6 +912,21 @@
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"VisitedExpression": {
|
||||
"description": "Store the position and access outcome for an expression visited in rules.",
|
||||
"id": "VisitedExpression",
|
||||
"properties": {
|
||||
"sourcePosition": {
|
||||
"$ref": "SourcePosition",
|
||||
"description": "Position in the `Source` or `Ruleset` where an expression was visited."
|
||||
},
|
||||
"value": {
|
||||
"description": "The evaluated value for the visited expression, e.g. true/false",
|
||||
"type": "any"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
|
||||
40
vendor/google.golang.org/api/firebaserules/v1/firebaserules-gen.go
generated
vendored
40
vendor/google.golang.org/api/firebaserules/v1/firebaserules-gen.go
generated
vendored
@@ -824,6 +824,11 @@ type TestResult struct {
|
||||
// "FAILURE" - Test is a failure.
|
||||
State string `json:"state,omitempty"`
|
||||
|
||||
// VisitedExpressions: The set of visited expressions for a given test.
|
||||
// This returns positions
|
||||
// and evaluation results of all visited expressions.
|
||||
VisitedExpressions []*VisitedExpression `json:"visitedExpressions,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DebugMessages") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@@ -989,6 +994,41 @@ func (s *UpdateReleaseRequest) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// VisitedExpression: Store the position and access outcome for an
|
||||
// expression visited in rules.
|
||||
type VisitedExpression struct {
|
||||
// SourcePosition: Position in the `Source` or `Ruleset` where an
|
||||
// expression was visited.
|
||||
SourcePosition *SourcePosition `json:"sourcePosition,omitempty"`
|
||||
|
||||
// Value: The evaluated value for the visited expression, e.g.
|
||||
// true/false
|
||||
Value interface{} `json:"value,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "SourcePosition") 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
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "SourcePosition") 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:"-"`
|
||||
}
|
||||
|
||||
func (s *VisitedExpression) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod VisitedExpression
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "firebaserules.projects.test":
|
||||
|
||||
type ProjectsTestCall struct {
|
||||
|
||||
Reference in New Issue
Block a user