[PR #5040] [CLOSED] chore: add openapi 3.1 spec for public api #16926

Closed
opened 2026-04-16 05:47:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5040
Author: @JerrettDavis
Created: 6/14/2024
Status: Closed

Base: mainHead: feature/add-OpenAPI3.1-spec


📝 Commits (5)

  • 73cba3f chore: add openapi 3.1 spec for public api
  • ef7c6cb chore: added spectral to lint OpenAPI spec
  • bfff252 chore: converted from quoted strings to multiline
  • eb67f20 Fix type of duration fields
  • 236413d Merge pull request #1 from szocsbarni/feature/add-OpenAPI3.1-spec

📊 Changes

3 files changed (+1037 additions, -0 deletions)

View changed files

📝 .github/workflows/test.yaml (+10 -0)
.spectral.yaml (+1 -0)
specs/openapi-3.1.yaml (+1026 -0)

📄 Description

Addresses issue #3383. Targets OpenAPI 3.1.0 as that's the most recent, and it appears to be the only version that supports DELETE with a request body. Also added spectral to the github test pipeline to lint the spec to ensure it's valid.

Swagger utilizing this spec can be seen in browser here: ef7c6cb43a/specs/openapi-3.1.yaml#/models/getModels

Redoc visualization here: ef7c6cb43a/specs/openapi-3.1.yaml (tag)/generate


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5040 **Author:** [@JerrettDavis](https://github.com/JerrettDavis) **Created:** 6/14/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/add-OpenAPI3.1-spec` --- ### 📝 Commits (5) - [`73cba3f`](https://github.com/ollama/ollama/commit/73cba3f0d7abd19846da0e45342cdcae76eeaabb) chore: add openapi 3.1 spec for public api - [`ef7c6cb`](https://github.com/ollama/ollama/commit/ef7c6cb43aa8cc8c38a4e51d4d7e78b66e08a5c1) chore: added spectral to lint OpenAPI spec - [`bfff252`](https://github.com/ollama/ollama/commit/bfff252fa936f3a23380aae3e75debc8b1d70c4c) chore: converted from quoted strings to multiline - [`eb67f20`](https://github.com/ollama/ollama/commit/eb67f20438b286ca78a69b5e8ad0c0a04436d55f) Fix type of duration fields - [`236413d`](https://github.com/ollama/ollama/commit/236413d4b224eea11d16883219c58162d41dfa1f) Merge pull request #1 from szocsbarni/feature/add-OpenAPI3.1-spec ### 📊 Changes **3 files changed** (+1037 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test.yaml` (+10 -0) ➕ `.spectral.yaml` (+1 -0) ➕ `specs/openapi-3.1.yaml` (+1026 -0) </details> ### 📄 Description Addresses issue #3383. Targets OpenAPI 3.1.0 as that's the most recent, and it appears to be the only version that supports DELETE with a request body. Also added [spectral](https://github.com/stoplightio/spectral-action) to the github test pipeline to lint the spec to ensure it's valid. Swagger utilizing this spec can be seen in browser here: https://validator.swagger.io/?url=https://raw.githubusercontent.com/ollama/ollama/ef7c6cb43aa8cc8c38a4e51d4d7e78b66e08a5c1/specs/openapi-3.1.yaml#/models/getModels Redoc visualization here: https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/ollama/ollama/ef7c6cb43aa8cc8c38a4e51d4d7e78b66e08a5c1/specs/openapi-3.1.yaml#tag/generate --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:47:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#16926