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

release: 2.0.0-beta.2 #45

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1fc43b3
chore: remove custom code
Jul 25, 2024
1b6bda1
chore(internal): codegen related update (#61)
stainless-app[bot] Jul 31, 2024
34aca8d
chore(ci): bump prism mock server version (#62)
stainless-app[bot] Aug 9, 2024
2b8de90
fix: deserialization of struct unions that implement json.Unmarshaler…
stainless-app[bot] Aug 9, 2024
39d88eb
chore: bump Go to v1.21 (#64)
stainless-app[bot] Aug 12, 2024
b51ad25
chore(examples): minor formatting changes (#65)
stainless-app[bot] Aug 12, 2024
c236514
chore: rebuild project due to codegen change (#66)
stainless-app[bot] Aug 19, 2024
6fa9c75
feat(api): manual updates (#67)
stainless-app[bot] Aug 22, 2024
d92ba3d
feat(api): manual updates (#68)
stainless-app[bot] Aug 22, 2024
7181661
feat(api): manual updates (#69)
stainless-app[bot] Aug 22, 2024
398358b
feat(api): manual updates (#70)
stainless-app[bot] Aug 22, 2024
4b8a5dd
feat(api): manual updates (#71)
stainless-app[bot] Aug 22, 2024
82fe3f9
feat(api): manual updates (#72)
stainless-app[bot] Aug 22, 2024
d87cd73
feat(api): OpenAPI spec update via Stainless API (#73)
stainless-app[bot] Aug 22, 2024
581b5d5
feat(api): OpenAPI spec update via Stainless API (#74)
stainless-app[bot] Aug 22, 2024
72a3291
fix file permissions
Sep 6, 2024
25b38f0
chore: rebuild project due to codegen change (#75)
stainless-app[bot] Sep 10, 2024
ce3695b
docs: update CONTRIBUTING.md (#76)
stainless-app[bot] Sep 13, 2024
9d12c95
chore(internal): codegen related update (#77)
stainless-app[bot] Sep 18, 2024
279ff56
chore(internal): codegen related update (#78)
stainless-app[bot] Sep 24, 2024
3838271
chore(internal): codegen related update (#79)
stainless-app[bot] Oct 1, 2024
df0c707
release: 2.0.0-beta.2
stainless-app[bot] Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ RUN apt-get update && apt-get install -y \
vim \
&& apt-get clean autoclean

# Ensure UTF-8 encoding
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

ENV GOPATH=/go
ENV PATH=$GOPATH/bin:$PATH

Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- main
- next

jobs:
lint:
Expand All @@ -15,9 +16,29 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Run lints
run: ./scripts/lint
test:
name: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run tests
run: ./scripts/test

- run: |
go build ./...
17 changes: 0 additions & 17 deletions .github/workflows/release-doctor.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.prism.log
codegen.log
Brewfile.lock.json
.idea/
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.0.0-beta.1"
".": "2.0.0-beta.2"
}
3 changes: 2 additions & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
configured_endpoints: 3
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sam%2Fsam-68f36d6f76f1e0fbfd8d62bdf60a6dc2efa9d5c160e2ee4c318ec73c734244b2.yml
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
brew "go"
64 changes: 61 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,70 @@
# Changelog

## 2.0.0-beta.1 (2024-03-08)
## 2.0.0-beta.2 (2024-10-01)

Full Changelog: [v2.0.0-beta.0...v2.0.0-beta.1](https://github.com/DefinitelyATestOrg/sam-go/compare/v2.0.0-beta.0...v2.0.0-beta.1)
Full Changelog: [v2.0.0-beta.1...v2.0.0-beta.2](https://github.com/DefinitelyATestOrg/sam-go/compare/v2.0.0-beta.1...v2.0.0-beta.2)

### Features

* update via SDK Studio ([#6](https://github.com/DefinitelyATestOrg/sam-go/issues/6)) ([7a84c79](https://github.com/DefinitelyATestOrg/sam-go/commit/7a84c7901bf84279b4a9fae2258d6decb90f080e))
* **api:** manual updates ([#67](https://github.com/DefinitelyATestOrg/sam-go/issues/67)) ([6fa9c75](https://github.com/DefinitelyATestOrg/sam-go/commit/6fa9c75acef5b09781613865f15548397563a719))
* **api:** manual updates ([#68](https://github.com/DefinitelyATestOrg/sam-go/issues/68)) ([d92ba3d](https://github.com/DefinitelyATestOrg/sam-go/commit/d92ba3d57aba72671c454d46de8df73d8ca46292))
* **api:** manual updates ([#69](https://github.com/DefinitelyATestOrg/sam-go/issues/69)) ([7181661](https://github.com/DefinitelyATestOrg/sam-go/commit/71816619f0c1bc056e5c5f68a0dffbeec0ec9435))
* **api:** manual updates ([#70](https://github.com/DefinitelyATestOrg/sam-go/issues/70)) ([398358b](https://github.com/DefinitelyATestOrg/sam-go/commit/398358ba3283860ceb403f0c9da4ef5af8786b00))
* **api:** manual updates ([#71](https://github.com/DefinitelyATestOrg/sam-go/issues/71)) ([4b8a5dd](https://github.com/DefinitelyATestOrg/sam-go/commit/4b8a5dd3c444935c4a5618211a8f88bbd1350af2))
* **api:** manual updates ([#72](https://github.com/DefinitelyATestOrg/sam-go/issues/72)) ([82fe3f9](https://github.com/DefinitelyATestOrg/sam-go/commit/82fe3f9b223e18667a6281cd234ee3ed2a262ebe))
* **api:** OpenAPI spec update via Stainless API ([#73](https://github.com/DefinitelyATestOrg/sam-go/issues/73)) ([d87cd73](https://github.com/DefinitelyATestOrg/sam-go/commit/d87cd73f6ba41d5dfe00fb8893548834d9d2aa09))
* **api:** OpenAPI spec update via Stainless API ([#74](https://github.com/DefinitelyATestOrg/sam-go/issues/74)) ([581b5d5](https://github.com/DefinitelyATestOrg/sam-go/commit/581b5d535687c9c02bc9802f8b84ca40f8c6aecb))


### Bug Fixes

* deserialization of struct unions that implement json.Unmarshaler ([#63](https://github.com/DefinitelyATestOrg/sam-go/issues/63)) ([2b8de90](https://github.com/DefinitelyATestOrg/sam-go/commit/2b8de90a6af258982b470afefe4929a5be61aa19))


### Chores

* bump Go to v1.21 ([#64](https://github.com/DefinitelyATestOrg/sam-go/issues/64)) ([39d88eb](https://github.com/DefinitelyATestOrg/sam-go/commit/39d88eb6a6fed6ba6f2505916cf79faff2cefd6c))
* **ci:** bump prism mock server version ([#62](https://github.com/DefinitelyATestOrg/sam-go/issues/62)) ([34aca8d](https://github.com/DefinitelyATestOrg/sam-go/commit/34aca8d73b805418d67f0bddd704a0898be4e38b))
* **examples:** minor formatting changes ([#65](https://github.com/DefinitelyATestOrg/sam-go/issues/65)) ([b51ad25](https://github.com/DefinitelyATestOrg/sam-go/commit/b51ad25da16c0085ac9794600ca94d12191e5070))
* **internal:** codegen related update ([#61](https://github.com/DefinitelyATestOrg/sam-go/issues/61)) ([1b6bda1](https://github.com/DefinitelyATestOrg/sam-go/commit/1b6bda1c22b13f5cbe1dcb1892a4d8705c978a74))
* **internal:** codegen related update ([#77](https://github.com/DefinitelyATestOrg/sam-go/issues/77)) ([9d12c95](https://github.com/DefinitelyATestOrg/sam-go/commit/9d12c95e262af76b93efdec16e1b2b1797e26e7b))
* **internal:** codegen related update ([#78](https://github.com/DefinitelyATestOrg/sam-go/issues/78)) ([279ff56](https://github.com/DefinitelyATestOrg/sam-go/commit/279ff56e9f60e191d5073c914c70570c226afcc1))
* **internal:** codegen related update ([#79](https://github.com/DefinitelyATestOrg/sam-go/issues/79)) ([3838271](https://github.com/DefinitelyATestOrg/sam-go/commit/38382717b99927bed040d8c7cee48dcb8b4f0668))
* rebuild project due to codegen change ([#66](https://github.com/DefinitelyATestOrg/sam-go/issues/66)) ([c236514](https://github.com/DefinitelyATestOrg/sam-go/commit/c2365142e21cc28505dcb8f4a50a3a3732e742e0))
* rebuild project due to codegen change ([#75](https://github.com/DefinitelyATestOrg/sam-go/issues/75)) ([25b38f0](https://github.com/DefinitelyATestOrg/sam-go/commit/25b38f0abfb78cd0e65fb5ef1ea17c963c0e31e1))
* remove custom code ([1fc43b3](https://github.com/DefinitelyATestOrg/sam-go/commit/1fc43b3174befc7e0bc3f74680a20d6393b9c6f7))


### Documentation

* update CONTRIBUTING.md ([#76](https://github.com/DefinitelyATestOrg/sam-go/issues/76)) ([ce3695b](https://github.com/DefinitelyATestOrg/sam-go/commit/ce3695bdfeb997e363e7dffaa3f7fa878e75b8b2))

## 3.0.0-beta.2 (2024-03-29)

Full Changelog: [v3.0.0-beta.1...v3.0.0-beta.2](https://github.com/DefinitelyATestOrg/sam-go/compare/v3.0.0-beta.1...v3.0.0-beta.2)

### Features

* **api:** update via SDK Studio ([#13](https://github.com/DefinitelyATestOrg/sam-go/issues/13)) ([9c3a5a7](https://github.com/DefinitelyATestOrg/sam-go/commit/9c3a5a7c328cba9187fa1095170ab41d6d4e8757))
* **api:** update via SDK Studio ([#15](https://github.com/DefinitelyATestOrg/sam-go/issues/15)) ([4eb3718](https://github.com/DefinitelyATestOrg/sam-go/commit/4eb371810bdfe699ede722e3bf4056f5bbc7a915))

## 3.0.0-beta.1 (2024-03-08)

Full Changelog: [v3.0.0-beta.0...v3.0.0-beta.1](https://github.com/DefinitelyATestOrg/sam-go/compare/v3.0.0-beta.0...v3.0.0-beta.1)

### Features

* update via SDK Studio ([#10](https://github.com/DefinitelyATestOrg/sam-go/issues/10)) ([f35afed](https://github.com/DefinitelyATestOrg/sam-go/commit/f35afed83dc2284963707e9326a218005d42950a))
* update via SDK Studio ([#12](https://github.com/DefinitelyATestOrg/sam-go/issues/12)) ([5d86b49](https://github.com/DefinitelyATestOrg/sam-go/commit/5d86b494c00440c27d2f2494d6ace297076ad16d))

## 3.0.0-beta.0 (2024-03-08)

Full Changelog: [v2.0.0-beta.0...v3.0.0-beta.0](https://github.com/DefinitelyATestOrg/sam-go/compare/v2.0.0-beta.0...v3.0.0-beta.0)

### Features

* update via SDK Studio ([bfb6a57](https://github.com/DefinitelyATestOrg/sam-go/commit/bfb6a57554cfafe4daf966e61b29e31e8e2d62b2))
* update via SDK Studio ([#8](https://github.com/DefinitelyATestOrg/sam-go/issues/8)) ([ce345ed](https://github.com/DefinitelyATestOrg/sam-go/commit/ce345ed92b7713ed21a20d607010c88555a42e84))

## 2.0.0-beta.0 (2024-03-08)

Expand Down
41 changes: 24 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
## Setting up the environment

### Install Go 1.18+
To set up the repository, run:

Install go by following relevant directions [here](https://go.dev/doc/install).
```sh
$ ./scripts/bootstrap
$ ./scripts/build
```

This will install all the required dependencies and build the SDK.

You can also [install go 1.18+ manually](https://go.dev/doc/install).

## Modifying/Adding code

Most of the SDK is generated code, and any modified code will be overridden on the next generation. The
`examples/` directory is an exception and will never be overridden.
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
modify the contents of the `lib/` and `examples/` directories.

## Adding and running examples

All files in the `examples/` directory are not modified by the Stainless generator and can be freely edited or
added to.
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.

```bash
```go
# add an example to examples/<your-example>/main.go

package main
Expand All @@ -24,36 +31,36 @@ func main() {
}
```

```bash
go run ./examples/<your-example>
```sh
$ go run ./examples/<your-example>
```

## Using the repository from source

To use a local version of this library from source in another project, edit the `go.mod` with a replace
directive. This can be done through the CLI with the following:

```bash
go mod edit -replace github.com/DefinitelyATestOrg/sam-go/v2=/path/to/sam-go
```sh
$ go mod edit -replace github.com/DefinitelyATestOrg/sam-go/v2=/path/to/sam-go
```

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```bash
```sh
# you will need npm installed
npx prism path/to/your/openapi.yml
$ npx prism mock path/to/your/openapi.yml
```

```bash
go test ./...
```sh
$ ./scripts/test
```

## Formatting

This library uses the standard gofmt code formatter:

```bash
gofmt -s -w .
```sh
$ ./scripts/format
```
Loading
Loading