Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan committed Nov 1, 2024
1 parent 8e3dace commit f6f2a71
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions generator/internal/genclient/translator/openapi/openapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,28 @@ func TestMakeAPI(t *testing.T) {
Documentation: "A resource that represents a Google Cloud location.",
Name: "Location",
Fields: []*genclient.Field{
{Name: "name",
{
Name: "name",
Documentation: "Resource name for the location, which may vary between implementations.",
Typez: genclient.STRING_TYPE,
Optional: true},
{Name: "locationId",
{
Name: "locationId",
Documentation: `The canonical id for this location.`,
Typez: genclient.STRING_TYPE,
Optional: true},
{Name: "displayName",
{
Name: "displayName",
Documentation: `The friendly name for this location, typically a nearby city name.`,
Typez: genclient.STRING_TYPE,
Optional: true},
{Name: "labels",
{
Name: "labels",
Documentation: "Cross-service attributes for the location.",
Typez: genclient.MESSAGE_TYPE,
Optional: true},
{Name: "metadata",
{
Name: "metadata",
Documentation: `Service-specific metadata. For example the available capacity at the given location.`,
Typez: genclient.MESSAGE_TYPE,
Optional: true},
Expand Down

0 comments on commit f6f2a71

Please sign in to comment.