Skip to content

Commit

Permalink
Use live openapi.yml from production
Browse files Browse the repository at this point in the history
  • Loading branch information
blomqma committed Sep 16, 2024
1 parent a510cf1 commit bf720e2
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 1,231 deletions.
6 changes: 4 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lockVersion: 2.0.0
id: 11c8545a-deb6-44f9-ba56-e71722af6a51
management:
docChecksum: e43c15eb1db878bd37fc365296bf9603
docChecksum: 1c118012fa9137969bd948e2375be0b5
docVersion: 0.2.0
speakeasyVersion: 1.396.7
generationVersion: 2.415.6
Expand Down Expand Up @@ -69,6 +69,8 @@ generatedFiles:
- internal/provider/types/s3_ref.go
- internal/provider/utils.go
- internal/sdk/.gitattributes
- internal/sdk/.gitignore
- internal/sdk/CONTRIBUTING.md
- internal/sdk/deprecated.go
- internal/sdk/file.go
- internal/sdk/internal/hooks/hooks.go
Expand Down Expand Up @@ -156,7 +158,7 @@ examples:
query:
activity_id: "01F130Q52Q6MWSNS8N2AVXV4JN"
requestBody:
application/json: {"_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "relations": [], "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}
application/json: {"_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "relations": [], "source_url": "https://some-api-url.com/download?file_id=123", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}
responses:
"201":
application/json: {"_acl": {"delete": ["org:456"], "edit": ["org:456"], "view": ["org:456"]}, "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_manifest": ["123e4567-e89b-12d3-a456-426614174000"], "_org": "123", "_owners": [], "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "_title": "document.pdf", "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf", "readable_size": "1.2 MB", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}, "size_bytes": 1234, "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf", "versions": []}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
all: speakeasy docs

original.yaml:
# curl https://docs.api.epilot.io/file.yaml > original.yaml
cp openapi.yml original.yaml
curl https://docs.api.epilot.io/file.yaml > original.yaml
# cp openapi.yml original.yaml

original_modified.yaml: original.yaml overlay.yaml
speakeasy overlay apply -s original.yaml -o overlay.yaml > original_modified.yaml
Expand All @@ -13,8 +13,8 @@ overlay.yaml:

speakeasy:
$(eval TMP := $(shell mktemp -d))
# curl https://docs.api.epilot.io/file.yaml > $(TMP)/openapi.yaml
cp openapi.yml $(TMP)/openapi.yaml
curl https://docs.api.epilot.io/file.yaml > $(TMP)/openapi.yaml
# cp openapi.yml $(TMP)/openapi.yaml
speakeasy overlay apply -s $(TMP)/openapi.yaml -o overlay.yaml > $(TMP)/final.yaml
speakeasy generate sdk --lang terraform -o . -s $(TMP)/final.yaml

Expand Down
26 changes: 0 additions & 26 deletions examples/resources/epilot-file_file-import/generated_resources.tf

This file was deleted.

20 changes: 0 additions & 20 deletions examples/resources/epilot-file_file-import/provider.tf

This file was deleted.

17 changes: 0 additions & 17 deletions examples/resources/epilot-file_file-import/resource.tf

This file was deleted.

20 changes: 0 additions & 20 deletions examples/resources/epilot-file_file/provider.tf

This file was deleted.

19 changes: 0 additions & 19 deletions examples/test/file.tf

This file was deleted.

30 changes: 0 additions & 30 deletions examples/test/res.tf

This file was deleted.

Loading

0 comments on commit bf720e2

Please sign in to comment.