Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project are documented here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Removed

- The vendored `openapi.json`. The SDK did not read it, and it was out of date.
The spec is at <https://cloro.dev/docs/api-reference/openapi.json>.

## [0.4.0]

### Added
Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ src/cloro/
resources/
monitor.py # POST /v1/monitor/* (sync per-engine methods)
async_tasks.py # /v1/async/* queue + the wait() poller
openapi.json # vendored source of truth for the API surface
tests/ # httpx.MockTransport-based unit tests (no network)
```

## Source of truth

`openapi.json` (the cloro OpenAPI 3.1 spec, also served at
<https://cloro.dev/docs/api-reference/openapi.json>) is the contract. When the
API changes, refresh the vendored copy and reconcile the resource methods and
types against it.
The cloro OpenAPI 3.1 spec at
<https://cloro.dev/docs/api-reference/openapi.json> is the contract. This repo
keeps no copy. When the API changes, read the spec at that URL and make the
resource methods and types agree with it. The
[changelog](https://cloro.dev/docs/changelog) lists the API changes.

The resource/type layer is intentionally thin and could be generated from the
spec (Stainless / Speakeasy / Fern) if the surface grows. The one piece to keep
Expand Down
Loading
Loading