Skip to content

chore: improve swagger markdown optional fields typing#36247

Merged
asukaminato0721 merged 1 commit into
langgenius:mainfrom
cqjjjzr:schema-optional
May 16, 2026
Merged

chore: improve swagger markdown optional fields typing#36247
asukaminato0721 merged 1 commit into
langgenius:mainfrom
cqjjjzr:schema-optional

Conversation

@cqjjjzr
Copy link
Copy Markdown
Contributor

@cqjjjzr cqjjjzr commented May 16, 2026

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Fixes #36246

Screenshots

Before:

#### ApiKeyItem

| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| created_at |  |  | No |
| id | string |  | Yes |
| last_used_at |  |  | No |
| token | string |  | Yes |
| type | string |  | Yes |
#### ApiKeyItem

| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| created_at | integer |  | No |
| id | string |  | Yes |
| last_used_at | integer |  | No |
| token | string |  | Yes |
| type | string |  | Yes |

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. refactor labels May 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 0.00% 43.70% +43.70%
Strict coverage 0.00% 43.22% +43.22%
Typed symbols 0 22,131 +22,131
Untyped symbols 0 28,830 +28,830
Modules 0 2557 +2,557

@asukaminato0721 asukaminato0721 enabled auto-merge May 16, 2026 16:39
asukaminato0721

This comment was marked as low quality.

@asukaminato0721 asukaminato0721 added this pull request to the merge queue May 16, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 16, 2026
Merged via the queue into langgenius:main with commit 9d0906c May 16, 2026
28 checks passed
zhangtaodemama added a commit to zhangtaodemama/langgenius-dify-bfaadcb0c706 that referenced this pull request May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer refactor size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor/Chore] improve swagger markdown generation for optional fields

2 participants