Assigned
Status Update
Comments
el...@google.com <el...@google.com> #2
I have forwarded this request to the engineering team. We will update this issue with any progress updates and a resolution.
Best Regards,
Josh Moyer
Google Cloud Platform Support
Best Regards,
Josh Moyer
Google Cloud Platform Support
rj...@google.com <rj...@google.com> #3
This is not only useful for IP addresses, but also for many other resources. I understand that names are currently used as identifiers, so this request is probably not trivial to implement. Maybe distinguishing between a (numeric, automatically generated) identifier and a (textual) label is the way to go?
Description
What you expected to happen: Add support to type=file in a parameter object.
Steps to reproduce:
1. Create a OpenAPI swagger file with type=file in a URI's parameter object [1].
2. Deploy it with "gcloud endpoints services deploy SWGGER_FILE.
3. Get the following error message:
ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: Cannot convert to service config.
location: "unknown location"
kind: ERROR
message: "http: repeated message field 'google.protobuf.Struct.fields' referred to by message 'UploadRequest' cannot be mapped as an HTTP parameter."
location: "unknown location"
kind: ERROR
message: "http: cyclic message field 'google.protobuf.Struct.FieldsEntry.value' referred to by message 'UploadRequest' in method 'method 1.NAME_endpoints_PROJECT_ID_cloud_goog.Upload' cannot be mapped as an HTTP parameter."
location: "unknown location"
kind: ERROR
message: "http: cyclic message field 'google.protobuf.ListValue.values' referred to by message 'UploadRequest' in method 'method 1.NAME_endpoints_PROJECT_ID_cloud_goog.Upload' cannot be mapped as an HTTP parameter."
Other information (workarounds you have tried, documentation consulted, etc):
[1] OpenAPI 2.0 specification
[2] I don't see I cannot use "file" in
[3] A sample path:
"/upload":
post:
description: "Upload"
operationId: "upload"
consumes:
- "multipart/form-data"
produces:
- "application/text"
responses:
200:
description: "Upload OK"
schema:
$ref: "#/definitions/echoMessage"
parameters:
- description: "Upload a file"
in: formData
name: message
required: true
type: file
security:
- api_key: []