Skip to content

Commit

Permalink
chore: fix speakeasy gen
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Nov 4, 2024
1 parent 4252fb3 commit b45bd9c
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ The speakeasy CLI allows you to generate more usage snippets. Here's how:
- To generate a sample for a specific operation by providing an operation ID, use:

```
speakeasy generate usage -s openapi_fixed.json -l python -i {INPUT_OPERATION_ID} -o ./samples
speakeasy generate usage -s openapi.json -l python -i {INPUT_OPERATION_ID} -o ./samples
```

- To generate samples for an entire namespace (like a tag or group name), use:

```
speakeasy generate usage -s openapi_fixed.json -l python -n {INPUT_TAG_NAME} -o ./samples
speakeasy generate usage -s openapi.json -l python -n {INPUT_TAG_NAME} -o ./samples
```
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ python -m pip install --upgrade pip
pip install -e .

# Generate starter usage sample with speakeasy
speakeasy generate usage -s openapi_fixed.json -l python -o samples/root.py
speakeasy generate usage -s openapi.json -l python -o samples/root.py
15 changes: 10 additions & 5 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ configVersion: 2.0.0
generation:
devContainers:
enabled: true
schemaPath: openapi_fixed.json
schemaPath: openapi.json
sdkClassName: Moov
maintainOpenAPIOrder: true
usageSnippets:
Expand All @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
python:
version: 0.0.1
version: 0.0.3
additionalDependencies:
dev: {}
main: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ speakeasyVersion: 1.424.0
sources:
Moov-OAS:
sourceNamespace: moov-oas
sourceRevisionDigest: sha256:d446bc7afca0d7573002c834cc87db340ed5d9c6fa2e8216dcf17807ed62b8eb
sourceBlobDigest: sha256:c49f7ecc9f612f0206609d2d5bda99e0d720d1b0ea4d1130b0a8518090b48a1e
sourceRevisionDigest: sha256:d4f18cf1a3238cab46f0c1d65f32195381057f418d12370ea72b6f81857bb399
sourceBlobDigest: sha256:e1683288943120dbc87083724a5a331cad93527cd7ecd3f06f7f4a69cf6d9972
tags:
- latest
targets:
moov:
source: Moov-OAS
sourceNamespace: moov-oas
sourceRevisionDigest: sha256:d446bc7afca0d7573002c834cc87db340ed5d9c6fa2e8216dcf17807ed62b8eb
sourceBlobDigest: sha256:c49f7ecc9f612f0206609d2d5bda99e0d720d1b0ea4d1130b0a8518090b48a1e
sourceRevisionDigest: sha256:d4f18cf1a3238cab46f0c1d65f32195381057f418d12370ea72b6f81857bb399
sourceBlobDigest: sha256:e1683288943120dbc87083724a5a331cad93527cd7ecd3f06f7f4a69cf6d9972
codeSamplesNamespace: moov-oas-code-samples
codeSamplesRevisionDigest: sha256:4072692809e98d05b5aeda1479d1821ffe3270fdd371dbb265f90a25de849879
codeSamplesRevisionDigest: sha256:85e0072dcd4bd905ca7053bfd182486f48ad557df30cb664dc79993ae3a827ad
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
Moov-OAS:
inputs:
- location: openapi_fixed.json
- location: openapi.json
registry:
location: registry.speakeasyapi.dev/moov/moov/moov-oas
targets:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ speakeasyVersion: latest
sources:
Moov-OAS:
inputs:
- location: openapi_fixed.json
- location: openapi.json
registry:
location: registry.speakeasyapi.dev/moov/moov/moov-oas
targets:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "moov"
version = "0.0.1"
version = "0.0.3"
description = "Python Client SDK Generated by Speakeasy."
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/moov/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "moov"
__version__: str = "0.0.1"
__version__: str = "0.0.3"

try:
if __package__ is not None:
Expand Down
4 changes: 2 additions & 2 deletions src/moov/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class SDKConfiguration:
server_idx: Optional[int] = 0
language: str = "python"
openapi_doc_version: str = "v1.0.0"
sdk_version: str = "0.0.1"
sdk_version: str = "0.0.3"
gen_version: str = "2.445.1"
user_agent: str = "speakeasy-sdk/python 0.0.1 2.445.1 v1.0.0 moov"
user_agent: str = "speakeasy-sdk/python 0.0.3 2.445.1 v1.0.0 moov"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down

0 comments on commit b45bd9c

Please sign in to comment.