Skip to content

Conversation

@miguelgrinberg
Copy link
Contributor

Fixes #3773

This change adds the default field to properties in the exported OpenAPI files, when there is a serverDefault for the property in schema.json.

Copy link
Contributor

@lcawl lcawl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Output LGTM, thanks!

@miguelgrinberg miguelgrinberg merged commit 8aa64fc into main Jul 4, 2025
15 of 16 checks passed
@miguelgrinberg miguelgrinberg deleted the add-server-default-to-openapi branch July 4, 2025 10:59
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2025

The backport to 8.19 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.19 8.19
# Navigate to the new working tree
cd .worktrees/backport-8.19
# Create a new branch
git switch --create backport-4774-to-8.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 8aa64fcc8c19bac49f0d8342721c52e841ee6b57
# Push it to GitHub
git push --set-upstream origin backport-4774-to-8.19
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.19

Then, create a pull request where the base branch is 8.19 and the compare/head branch is backport-4774-to-8.19.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2025

The backport to 8.18 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.18 8.18
# Navigate to the new working tree
cd .worktrees/backport-8.18
# Create a new branch
git switch --create backport-4774-to-8.18
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 8aa64fcc8c19bac49f0d8342721c52e841ee6b57
# Push it to GitHub
git push --set-upstream origin backport-4774-to-8.18
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.18

Then, create a pull request where the base branch is 8.18 and the compare/head branch is backport-4774-to-8.18.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2025

The backport to 9.0 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.0 9.0
# Navigate to the new working tree
cd .worktrees/backport-9.0
# Create a new branch
git switch --create backport-4774-to-9.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 8aa64fcc8c19bac49f0d8342721c52e841ee6b57
# Push it to GitHub
git push --set-upstream origin backport-4774-to-9.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.0

Then, create a pull request where the base branch is 9.0 and the compare/head branch is backport-4774-to-9.0.

github-actions bot pushed a commit that referenced this pull request Jul 4, 2025
miguelgrinberg added a commit that referenced this pull request Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default values missing from OpenAPI output

3 participants