Skip to content

Commit bf720e2

Browse files
committed
Use live openapi.yml from production
1 parent a510cf1 commit bf720e2

File tree

9 files changed

+8
-1231
lines changed

9 files changed

+8
-1231
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
lockVersion: 2.0.0
22
id: 11c8545a-deb6-44f9-ba56-e71722af6a51
33
management:
4-
docChecksum: e43c15eb1db878bd37fc365296bf9603
4+
docChecksum: 1c118012fa9137969bd948e2375be0b5
55
docVersion: 0.2.0
66
speakeasyVersion: 1.396.7
77
generationVersion: 2.415.6
@@ -69,6 +69,8 @@ generatedFiles:
6969
- internal/provider/types/s3_ref.go
7070
- internal/provider/utils.go
7171
- internal/sdk/.gitattributes
72+
- internal/sdk/.gitignore
73+
- internal/sdk/CONTRIBUTING.md
7274
- internal/sdk/deprecated.go
7375
- internal/sdk/file.go
7476
- internal/sdk/internal/hooks/hooks.go
@@ -156,7 +158,7 @@ examples:
156158
query:
157159
activity_id: "01F130Q52Q6MWSNS8N2AVXV4JN"
158160
requestBody:
159-
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"}}
161+
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"}}
160162
responses:
161163
"201":
162164
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": []}

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
all: speakeasy docs
33

44
original.yaml:
5-
# curl https://docs.api.epilot.io/file.yaml > original.yaml
6-
cp openapi.yml original.yaml
5+
curl https://docs.api.epilot.io/file.yaml > original.yaml
6+
# cp openapi.yml original.yaml
77

88
original_modified.yaml: original.yaml overlay.yaml
99
speakeasy overlay apply -s original.yaml -o overlay.yaml > original_modified.yaml
@@ -13,8 +13,8 @@ overlay.yaml:
1313

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

examples/resources/epilot-file_file-import/generated_resources.tf

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/resources/epilot-file_file-import/provider.tf

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/resources/epilot-file_file-import/resource.tf

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/resources/epilot-file_file/provider.tf

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/test/file.tf

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/test/res.tf

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)