Skip to content

registry-experimental: generate openapi doesn't support implicit references of configured projects #197

@timburks

Description

@timburks
shell:/# registry-experimental generate openapi apis/google.com-apigeeregistry/versions/-/specs/protos
Error: "apis/google.com-apigeeregistry/versions/-/specs/protos" is not a valid spec name: invalid spec name "apis/google.com-apigeeregistry/versions/-/specs/protos": must match "^projects/([A-Za-z0-9-.]+)/locations/global/apis/([A-Za-z0-9-.]+)/versions/([A-Za-z0-9-.]+)/specs/([A-Za-z0-9-.]+)$"
Usage:
  registry-experimental generate openapi [flags]

Flags:
  -h, --help             help for openapi
      --spec-id string   ID to use for generated spec (default "generated")

Global Flags:
      --address string             the server and port of the Registry API (eg. localhost:8080)
  -c, --config string              name of a configuration profile or path to config file
      --filter string              Filter selected resources
      --registry.address string    the server and port of the Registry API (eg. localhost:8080)
      --registry.insecure          if specified, client connects via http (not https)
      --registry.location string   the API Registry location
      --registry.project string    the API Registry project
      --registry.token string      the token to use for authorization to the API Registry

shell:/# registry-experimental generate openapi projects/catalog/locations/global/apis/google.com-apigeeregistry/versions/-/specs/protos
  INFO[0000] generate openapi for projects/catalog/locations/global/apis/google.com-apigeeregistry/versions/v1/specs/protos uid=e3841424
 DEBUG[0000] Computing projects/catalog/locations/global/apis/google.com-apigeeregistry/versions/v1/specs/protos/specs/generated uid=e3841424
 DEBUG[0000] Running /usr/local/bin/protoc protos/google/api/annotations.proto protos/google/api/client.proto protos/google/api/field_behavior.proto protos/google/api/http.proto protos/google/api/httpbody.proto protos/google/api/launch_stage.proto protos/google/api/resource.proto protos/google/cloud/apigeeregistry/v1/provisioning_service.proto protos/google/cloud/apigeeregistry/v1/registry_models.proto protos/google/cloud/apigeeregistry/v1/registry_service.proto protos/google/longrunning/operations.proto protos/google/rpc/status.proto -I protos --openapi_out=.
 uid=e3841424
 DEBUG[0000] protoc output: 
          uid=e3841424
shell:/# 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions