googleapis / googleapis/google-cloud-cpp
Support format field in Compute Discovery Doc
- Dominant language
- C++
- Stars
- 659
- Forks
- 462
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 89
Description
Compute is adding a `format` field to the JSON to accompany occurrences of `"type": "any"` in order to specify what the resulting protobuf type should be.
The generator should expect to see them together like:
```
"properties": {
"field_name": {
"type": "any",
"format": "google.protobuf.Value"
}
}
```
This would result in a .proto field definition like:
```
optional google.protobuf.Value field_name = ;
```
Contributor guide
Research direction
Start at the generator that consumes Compute Discovery JSON and handles properties with `type: "any"`; trace how it chooses the emitted protobuf field type. Add support for the accompanying `format` value and verify that the example produces an `optional google.protobuf.Value` field with the expected field number.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100