-
Notifications
You must be signed in to change notification settings - Fork 33
Applying a Spec resource from standard input doesn't upload the spec #1227
Copy link
Copy link
Open
Description
Given the following Spec resource in the file resource.yaml:
apiVersion: apigeeregistry/v1
items:
- apiVersion: apigeeregistry/v1
kind: Spec
metadata:
name: reg-supplier
parent: apis/reg-supplier/versions/1.0.0
data:
filename: regsupplier-app/target/openapi.jsonIt's successfully published to the registry when running:
registry apply -f resource.yaml
When applying the resource from standard input the specification is created with the filename in the resource; however, the specification content is not published.
RESOURCE=$(cat resource.yaml)
echo "$RESOURCE" | registry apply -f -GetApiSpecContents when using gRPC UI returns the following:
{
"content_type": "",
"data": "",
"extensions": []
}I would expect the specification content to be uploaded when applying from standard input.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Inbox