Open f-f opened 7 years ago
It appears like the spec doesn't specify any pattern, even though it could:
$ jq '.resources.buckets.methods.insert.request' storage-api.json
{
"$ref": "Bucket"
}
$ jq '.schemas.Bucket.properties.name' storage-api.json
{
"type": "string",
"description": "The name of the bucket.",
"annotations": {
"required": [
"storage.buckets.insert"
]
}
}
We should flag it up and hopefully get the API discovery spec improved.
However, we also want to have a way to refine this kind of (and other) things when we generate our modules.
Not all the characters are allowed in bucket names: https://cloud.google.com/storage/docs/naming#objectnames