Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support format field in Compute Discovery Doc #14836

Open
scotthart opened this issue Nov 8, 2024 · 0 comments
Open

Support format field in Compute Discovery Doc #14836

scotthart opened this issue Nov 8, 2024 · 0 comments
Labels
api: compute Issues related to the Compute Engine API. cpp: generator Issues related to the C++ micro-generator type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@scotthart
Copy link
Member

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 = <field number>;
@scotthart scotthart added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. api: compute Issues related to the Compute Engine API. cpp: generator Issues related to the C++ micro-generator labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: compute Issues related to the Compute Engine API. cpp: generator Issues related to the C++ micro-generator type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant