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

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

Open
timburks opened this issue May 18, 2023 · 0 comments

Comments

@timburks
Copy link
Contributor

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:/# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant