Skip to content

Dummy release v3.9.9 #4479

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

Closed
wants to merge 143 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
e9eef10
Initialize src/oas.md from 3.1.1.md
handrews Nov 10, 2024
76409f4
Initialize schemas from v3.1
handrews Nov 10, 2024
780522c
Start next release, bump version to 3.2.0
handrews Oct 21, 2024
4ae387f
Use dev schema for schema tests
ralfhandl Nov 13, 2024
b5d5809
Validate src/oas.md
ralfhandl Nov 13, 2024
95ee947
Merge pull request #4199 from ralfhandl/dev-validate-oas.md
lornajane Nov 14, 2024
165a5a4
Merge pull request #4198 from ralfhandl/dev-schema-tests
handrews Nov 21, 2024
b7f68a9
Merge remote-tracking branch 'upstream/main' into dev-update-from-main
ralfhandl Nov 21, 2024
98725de
Merge pull request #4216 from ralfhandl/dev-update-from-main
handrews Nov 21, 2024
a9643e1
Update schema.yaml in src
ralfhandl Nov 21, 2024
77c76f8
Merge pull request #4218 from ralfhandl/dev-update-src-schema
handrews Nov 21, 2024
61a9fb3
Merge pull request #4217 from OAI/dev
handrews Nov 21, 2024
0c1c63f
Let Security Schemes declare deprecation (#2532)
philsturgeon Nov 11, 2021
9b341bf
Add Device Code authorization to the supported OAuth Flows (#2964)
LikeLakers2 May 18, 2023
71765db
add oauth2MetadataUrl (#3694)
AxelNennker Apr 18, 2024
09d2714
Security Scheme `deprecated` applies to Any type
handrews Nov 25, 2024
d2c39a8
Merge pull request #4188 from handrews/v3.2-migrate
lornajane Nov 28, 2024
681dab7
docs: adds draft abnf for path templating
baywet Dec 5, 2024
09f5c1c
fix: removes fragment part
baywet Dec 5, 2024
fb13676
Apply suggestions from code review
baywet Dec 6, 2024
b6d642f
fix: removes query parameter
baywet Dec 6, 2024
3d83a95
Build HTML from src/oas.md
ralfhandl Dec 16, 2024
fc57608
Apparent consensus
ralfhandl Dec 16, 2024
1da9fbb
chore: adds pchar from RFC3986
baywet Dec 16, 2024
566aee4
chore: makes slash terminal
baywet Dec 16, 2024
758f44b
chore: updates wording
baywet Dec 16, 2024
e4caedc
chore: moves RFC references outside of ABNF block for path templates
baywet Dec 17, 2024
3063a89
chore: adds missing quotes
baywet Dec 17, 2024
a2873d8
chore: removes basic alpha digit hexdig definition
baywet Dec 17, 2024
d1c9e87
Merge branch 'feat/url-template-anbf-to-3-2-dev' of https://github.co…
baywet Dec 17, 2024
72d93b8
chore: explicitly lists out which definitions come from another RFC
baywet Dec 18, 2024
ee4b871
docs: adds server url template anbf
baywet Dec 18, 2024
53f96d7
Merge pull request #4244 from baywet/feat/url-template-anbf-to-3-2-dev
ralfhandl Dec 18, 2024
a89f36d
fix: expands the allowed set for server templates literal
baywet Dec 19, 2024
72eec29
fix: adds literals to the list of imported definitions
baywet Dec 19, 2024
cf00256
nit: groups literals with the imported definitions
baywet Dec 19, 2024
069f2be
nit: aligns literal definition
baywet Dec 19, 2024
a3425f2
builld into deploy-preview
ralfhandl Dec 19, 2024
e3f9dca
fix: updates literals with content from errata
baywet Dec 20, 2024
d1ce259
nit: changes the server variable name to avoid confusion and allow fo…
baywet Dec 20, 2024
984ee11
Merge pull request #4271 from OAI/main
ralfhandl Dec 21, 2024
0b187b6
Temp files in deploy-preview
ralfhandl Dec 23, 2024
45f197a
fix: adds mention that errata has been applied
baywet Dec 23, 2024
b9c7b91
Tempfile in folder next to js folder
ralfhandl Dec 23, 2024
0d02843
Fix Path Templating ABNF grammar
char0n Dec 25, 2024
bfd5088
fix: missing z character
baywet Dec 27, 2024
60a747f
Merge branch 'v3.2-dev' into feat/server-template-abnf-to-3-2-dev
baywet Dec 27, 2024
6e4f8d6
fix: missing z in url templating
baywet Dec 27, 2024
0d0c9da
Merge pull request #4264 from baywet/feat/server-template-abnf-to-3-2…
miqui Jan 2, 2025
d88c50e
Merge pull request #4279 from swaggerexpert/char0n/path-templating-ab…
miqui Jan 2, 2025
f822af7
Add more fields to the tag object, from the proposal
lornajane Jan 3, 2025
d3d8633
Better formatting of examples
lornajane Jan 3, 2025
3b31b7e
docs: adds links to annex C in path and server templating sections
baywet Jan 7, 2025
126d46a
Merge remote-tracking branch 'upstream/dev' into dev-build-src
ralfhandl Jan 8, 2025
b87e39c
fix: adds reference to paths object guidance from server variables
baywet Jan 9, 2025
fd34321
Merge pull request #4292 from baywet/feat/annex-c-pointers
handrews Jan 9, 2025
a055eca
Improve tag kind wording and link registry
lornajane Jan 10, 2025
581391a
Typo
ralfhandl Jan 10, 2025
8a2bb17
Preview and lint spec changes
ralfhandl Jan 15, 2025
e8a0d07
Merge pull request #4254 from ralfhandl/dev-build-src
handrews Jan 15, 2025
0571af7
Merge pull request #4288 from lornajane/improved-tags
lornajane Jan 16, 2025
cde67e1
validate markdown in build-src
ralfhandl Jan 18, 2025
bf9155d
Merge pull request #4311 from ralfhandl/dev-validate-markdown-in-buil…
ralfhandl Jan 22, 2025
78320b6
New script format-markdown
ralfhandl Feb 6, 2025
f1d5629
First draft of optional discriminator feature
mikekistler Feb 6, 2025
6c91a0b
Address comments from PR review
mikekistler Feb 9, 2025
328d6a3
Merge remote-tracking branch 'upstream/main' into dev-update-from-main
ralfhandl Feb 10, 2025
9faf031
Apply suggestions from PR review
mikekistler Feb 11, 2025
7ebde14
Use defaultMapping keyword in discriminator
mikekistler Feb 11, 2025
0d996cc
Add new tags fields to schema
lornajane Feb 13, 2025
0980f61
Merge pull request #4344 from ralfhandl/dev-update-from-main
ralfhandl Feb 13, 2025
ca59b57
Merge pull request #4353 from lornajane/add-tags-to-schema
lornajane Feb 13, 2025
cefa986
Remove obsolete schemas folder
ralfhandl Feb 13, 2025
70ae381
Adjust README.md
ralfhandl Feb 13, 2025
d6d0fe7
Update schema-publish.yaml
ralfhandl Feb 13, 2025
b54b525
No loop, just work on src/schemas/validation
ralfhandl Feb 13, 2025
9d4f648
Update schema-publish.yaml
ralfhandl Feb 13, 2025
c43615c
npm script for building schemas locally
ralfhandl Feb 14, 2025
183ac8b
Run only on changes to inputs and scripts
ralfhandl Feb 14, 2025
bd302e3
Update schema-publish.yaml
ralfhandl Feb 14, 2025
494222b
Use branch name
ralfhandl Feb 14, 2025
94700fd
Prefer Discriminator Object terminology
mikekistler Feb 14, 2025
d36a8ff
More updates for PR review comments
mikekistler Feb 15, 2025
27216de
Add back polymorphic example using allOf
mikekistler Feb 15, 2025
4600360
Merge pull request #4336 from ralfhandl/dev-format-src-oas.md
ralfhandl Feb 17, 2025
3f82212
Apply suggestions from code review
ralfhandl Feb 17, 2025
4018f80
Update src/oas.md
ralfhandl Feb 17, 2025
00d4de1
Bump spec version to 3.2
ralfhandl Feb 17, 2025
92e11ec
Bump spec version in schema files
ralfhandl Feb 17, 2025
3c30838
Align terminology
ralfhandl Feb 17, 2025
1919c0b
build-src uses build.sh, remove build-src.sh
ralfhandl Feb 18, 2025
aaa779b
Update src/schemas/validation/README.md
ralfhandl Feb 18, 2025
0a41814
Update schema-publish.sh
ralfhandl Feb 18, 2025
3e2604f
Merge branch 'dev-schemas-live-in-src' of https://github.com/ralfhand…
ralfhandl Feb 18, 2025
6f75109
Update package.json
ralfhandl Feb 18, 2025
35b2333
Merge pull request #4369 from ralfhandl/dev-one-spec-build-script
lornajane Feb 20, 2025
afa9511
Update schema-publish.yaml
ralfhandl Feb 20, 2025
90f9f2f
Update README.md
ralfhandl Feb 20, 2025
92e5fc9
Merge pull request #4361 from ralfhandl/dev-schemas-live-in-src
lornajane Feb 20, 2025
5dc0d94
Use correct pattern
ralfhandl Feb 21, 2025
4056207
Merge pull request #4378 from ralfhandl/dev-fix-schema-publish.yaml
lornajane Feb 22, 2025
c11fda7
Use defaultMapping for unmapped discriminating values
mikekistler Feb 24, 2025
20117c7
Update schema-publish.sh
duncanbeevers Feb 15, 2025
5c8ce0e
Merge pull request #4376 from duncanbeevers/dev-schemas-live-in-src
ralfhandl Feb 25, 2025
da3c386
Apply suggestions from PR review
mikekistler Feb 27, 2025
8a2e070
Remove yaml2json
duncanbeevers Feb 27, 2025
9f113bd
Merge pull request #4386 from duncanbeevers/remove-yaml2json
ralfhandl Feb 28, 2025
6da8d26
New fixed fields in Security Scheme Object
ralfhandl Feb 28, 2025
f981427
Update schema-publish.sh
ralfhandl Mar 1, 2025
2e745dc
refreshUrl is a uri-reference
ralfhandl Mar 1, 2025
143c641
Merge pull request #4392 from OAI/main
ralfhandl Mar 6, 2025
35422e1
Merge pull request #4397 from OAI/dev
ralfhandl Mar 6, 2025
9f2a02b
Merge remote-tracking branch 'upstream/v3.2-dev' into 3.2-version-in-…
ralfhandl Mar 6, 2025
d1a2f0a
Change schema test fixtures openapi field to 3.2.0
ralfhandl Mar 6, 2025
70dbe5e
Merge pull request #4394 from ralfhandl/3.2-new-security-scheme-objec…
lornajane Mar 6, 2025
bfc3f8a
Merge pull request #4411 from OAI/main
lornajane Mar 6, 2025
f3c6b32
Merge pull request #4415 from OAI/dev
lornajane Mar 6, 2025
311c1f7
Fix misspelled anchor tags
ralfhandl Mar 7, 2025
11b2b44
Merge pull request #4422 from OAI/ralfhandl-patch-1
ralfhandl Mar 7, 2025
d7bbe0e
Merge pull request #4421 from OAI/main
ralfhandl Mar 10, 2025
bf4a5ee
Merge pull request #4424 from OAI/dev
ralfhandl Mar 10, 2025
5e1aebe
Merge pull request #4399 from ralfhandl/dev-schema-publish-fix-error-…
handrews Mar 13, 2025
e801855
Merge pull request #4432 from OAI/dev
ralfhandl Mar 13, 2025
3e72c1c
Merge pull request #4438 from OAI/main
ralfhandl Mar 14, 2025
8acb75c
Merge pull request #4441 from OAI/dev
ralfhandl Mar 14, 2025
2ae9e1e
Merge pull request #4443 from OAI/main
ralfhandl Mar 17, 2025
c24d89d
Merge pull request #4446 from OAI/dev
ralfhandl Mar 17, 2025
3bc53b8
Merge pull request #4449 from OAI/main
ralfhandl Mar 18, 2025
c321b1e
Merge pull request #4451 from OAI/dev
ralfhandl Mar 18, 2025
7a4a5d5
Create adjust-release-branch.sh
ralfhandl Mar 18, 2025
9ba315d
Make executable
ralfhandl Mar 18, 2025
521a391
schema tests: output reason if "pass" test fixture fails
ralfhandl Mar 18, 2025
fcc25e5
Merge pull request #4457 from OAI/main
ralfhandl Mar 19, 2025
ac2fde4
Merge pull request #4461 from OAI/dev
ralfhandl Mar 19, 2025
b1f703f
Mention in CONTRIBUTING.md
ralfhandl Mar 19, 2025
c4dfef1
Merge pull request #4339 from OAI/mdk/optional-discriminator
handrews Mar 20, 2025
ee236ee
Merge pull request #4367 from ralfhandl/3.2-version-in-schema
handrews Mar 20, 2025
c555c94
Merge pull request #4455 from ralfhandl/dev-schema-tests.-with-diagno…
handrews Mar 20, 2025
4ed2493
Merge pull request #4476 from OAI/dev
ralfhandl Mar 20, 2025
ee38f90
Merge pull request #4474 from OAI/main
ralfhandl Mar 20, 2025
0da8496
Merge pull request #4478 from OAI/dev
ralfhandl Mar 20, 2025
51b775f
Merge remote-tracking branch 'origin/main-adjust-release-branch' into…
ralfhandl Mar 20, 2025
829ca45
Dummy release branch
ralfhandl Mar 20, 2025
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
20 changes: 12 additions & 8 deletions .github/workflows/schema-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ name: schema-publish
# issue: https://github.com/OAI/OpenAPI-Specification/issues/3715

#
# This workflow copies the 3.x schemas to the gh-pages branch
# This workflow creates a pull request for publishing schema iterations to the gh-pages branch
#

# run this on push to main
# run this on push to vX.Y-dev branches or manually
on:
push:
branches:
- main
- 'v[0-9].[0-9]-dev'
paths:
- 'src/schemas/validation/*.yaml'
- 'scripts/schema-publish.sh'
- '.github/workflows/schema-publish.yaml'
workflow_dispatch: {}

jobs:
Expand All @@ -26,7 +30,7 @@ jobs:

- uses: actions/setup-node@v4 # setup Node.js
with:
node-version: '20.x'
node-version: '22.x'

- name: Install dependencies
run: npm ci
Expand All @@ -43,15 +47,15 @@ jobs:
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: publish-schema-iteration
branch: ${{ github.ref_name }}-publish-schema-iteration
base: gh-pages
delete-branch: true
path: deploy
labels: Housekeeping,Schema
reviewers: darrelmiller,webron,earth2marsh,webron,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
title: Publish OpenAPI Schema Iterations
title: '${{ github.ref_name }}: publish OpenAPI schema iterations'
commit-message: New OpenAPI schema iterations
signoff: true
body: |
This pull request is automatically triggered by GitHub action `schema-publish`.
The `schemas/**/*.yaml` files have changed and JSON files are automatically generated.
This pull request is automatically generated by GitHub action `schema-publish`.
The `src/schemas/validation/*.yaml` files have changed and JSON files are automatically generated.
4 changes: 2 additions & 2 deletions .github/workflows/validate-markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
node-version: '20.x'

- name: Validate markdown
run: npx --yes mdv versions/3.*.md
run: npx --yes mdv versions/3.*.md src/oas.md

- name: Lint markdown 3.0.4, 3.1.1, and later
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.0.4.md versions/3.1.[^0].md versions/3.[2-9].*.md
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.0.4.md versions/3.1.[^0].md versions/3.[2-9].*.md src/oas.md
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:

1. Update `EDITORS.md` on `main`
2. Merge `main` into `dev` and `dev` into `vX.Y-dev` via PRs
- Sync PRs are automatically created by workflows `sync-main-to-dev` and `sync-dev-to-vX.Y-dev`
- sync PRs are automatically created by workflows `sync-main-to-dev` and `sync-dev-to-vX.Y-dev`
3. Prepare spec files in `vX.Y-dev`
- `npm run format-markdown`
- `npm run build-src`
Expand All @@ -211,6 +211,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
- copy `EDITORS.md` to `versions/X.Y.Z-editors.md`
- delete `src/schemas`
- delete `tests/schema`
- bash script `scripts/adjust-release-branch.sh` performs these steps
5. Merge `vX.Y.Z-rel` into `main` via PR
- this PR should only add files `versions/X.Y.Z.md` and `versions/X.Y.Z-editors.md`

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"license": "Apache-2.0",
"scripts": {
"build": "bash ./scripts/md2html/build.sh",
"test": "c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh"
"build-src": "npm run validate-markdown && bash ./scripts/md2html/build.sh src && bash ./scripts/schema-publish.sh src",
"test": "c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh",
"format-markdown": "bash ./scripts/format-markdown.sh ./src/oas.md",
"validate-markdown": "npx mdv src/oas.md && npx markdownlint-cli src/oas.md"
},
"readmeFilename": "README.md",
"files": [
Expand Down
21 changes: 21 additions & 0 deletions scripts/adjust-release-branch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# Author: @ralfhandl

# Run this script from the root of the repo. It is designed to be run manually in a release branch.

branch=$(git branch --show-current)

if [[ ! $branch =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rel$ ]]; then
echo "This script is intended to be run from a release branch, e.g. v3.1.2-rel"
exit 1
fi

vVersion=$(basename "$branch" "-rel")
version=${vVersion:1}
echo Prepare release of $version

cp EDITORS.md versions/$version-editors.md
mv src/oas.md versions/$version.md
rm -r src/schemas
rm -r tests/schema
106 changes: 65 additions & 41 deletions scripts/schema-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,75 @@

# Run this script from the root of the repo. It is designed to be run by a GitHub workflow.

for schemaDir in schemas/v3* ; do
vVersion=$(basename "$schemaDir")
version=${vVersion:1}
echo $version

# list of schemas to process, dependent schemas come first
schemas=(meta.yaml dialect.yaml schema.yaml schema-base.yaml)

# find the newest commit date for each schema
maxDate=""
declare -A datesHash
for schema in "${schemas[@]}"; do
if [ -f "$schemaDir/$schema" ]; then
newestCommitDate=$(git log -1 --format="%ad" --date=short "$schemaDir/$schema")

# the newest date across a schema and all its dependencies is its date stamp
if [ "$newestCommitDate" \> "$maxDate" ]; then
maxDate=$newestCommitDate
fi
datesHash["$schema"]=$maxDate
echo $schema changed at $newestCommitDate
fi
done
schemaDir="src/schemas/validation"
branch=$(git branch --show-current)


if [ -z "$1" ]; then
if [[ $branch =~ ^v([0-9]+\.[0-9]+)-dev$ ]]; then
deploydir="./deploy/oas/${BASH_REMATCH[1]}"
else
echo "Unable to determine version from branch name; should be vX.Y-dev"
exit 1
fi
elif [ $1 = "src" ]; then
deploydir="./deploy-preview"
else
echo "Unrecognized argument"
exit 1
fi

# create the date-stamped schemas
publish_schema() {
local schema="$1"
local date="$2"
local sedCmd="$3"

local base=$(basename $schema '.yaml')
local target=$deploydir/$base/$date

mkdir -p $deploydir/$base

# construct sed command
sedCmd=()
for schema in "${!datesHash[@]}"; do
base=$(basename "$schema" .yaml)
sedCmd+=("-e s/$base\/WORK-IN-PROGRESS/$base\/${datesHash[$schema]}/g")
done
# replace the WORK-IN-PROGRESS placeholders
sed ${sedCmd[@]} $schemaDir/$schema | npx yaml --json --indent 2 --single > $target

# create the date-stamped schemas
for schema in "${!datesHash[@]}"; do
base=$(basename "$schema" .yaml)
target=deploy/oas/$version/$base/${datesHash[$schema]}
# Find the jekyll lander markdown file for this iteration.
local jekyllLander=$(find "$deploydir/$base" -maxdepth 1 -name "*.md")

mkdir -p "deploy/oas/$version/$base"
# Move the jekyll lander markdown for this iteration to the deploy destination.
# The lander files only exist in the gh-pages branch.
if [ ! -z "$jekyllLander" ]; then
mv $jekyllLander $target.md
echo " * $newestCommitDate: $schema & jekyll lander $(basename $jekyllLander)"
else
echo " * $newestCommitDate: $schema"
fi

sed ${sedCmd[@]} $schemaDir/$schema > $target.yaml
node scripts/yaml2json/yaml2json.js $target.yaml
rm $target.yaml
mv $target.json $target
}

mv deploy/oas/$version/$base/*.md $target.md
done
echo === Building schemas into $deploydir

echo ""
# list of schemas to process, dependent schemas come first
schemas=(meta.yaml dialect.yaml schema.yaml schema-base.yaml)

# publish each schema using its or any of its dependencies newest commit date.
maxDate=""
sedCmds=()
for schema in "${schemas[@]}"; do
if [ -f "$schemaDir/$schema" ]; then
newestCommitDate=$(git log -1 --format="%ad" --date=short "$schemaDir/$schema")

# the newest date across a schema and all its dependencies is its date stamp
if [ "$newestCommitDate" \> "$maxDate" ]; then
maxDate=$newestCommitDate
fi

base=$(basename $schema '.yaml')
# Add the replacement for this schema's placeholder to list of sed commands.
sedCmds+=("s/${base}\/WORK-IN-PROGRESS/${base}\/${maxDate}/g")

publish_schema "$schema" "$maxDate" $(printf '%s;' "${sedCmds[@]}")
fi
done

echo === Built
30 changes: 0 additions & 30 deletions scripts/yaml2json/yaml2json.js

This file was deleted.

18 changes: 18 additions & 0 deletions versions/3.9.9-editors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# OpenAPI Specification Editors

## Active
* Darrel Miller [@darrelmiller](https://github.com/darrelmiller)
* Henry Andrews [@handrews](https://github.com/handrews)
* Jeremy Whitlock [@whitlockjc](https://github.com/whitlockjc)
* Lorna Mitchell [@lornajane](https://github.com/lornajane)
* Marsh Gardiner [@earth2marsh](https://github.com/earth2marsh)
* Miguel Quintero [@miqui](https://github.com/miqui)
* Mike Kistler [@mikekistler](https://github.com/mikekistler)
* Ralf Handl [@ralfhandl](https://github.com/ralfhandl)
* Ron Ratovsky [@webron](https://github.com/webron)

## Emeritus
* Mike Ralphson [@MikeRalphson](https://github.com/MikeRalphson)
* Uri Sarid [@usarid](https://github.com/usarid)
* Jason Harmon [@jharmn](https://github.com/jharmn)
* Tony Tam [@fehguy](https://github.com/fehguy)
Loading
Loading