Skip to content

fix cloud atlas query handling - #77

Merged
jerrynbc merged 3 commits into
chaitin:mainfrom
like9729:codex/fix-cloudatlas-query-arrays
Sep 15, 2026
Merged

jerrynbc merged 3 commits into
chaitin:mainfrom
like9729:codex/fix-cloudatlas-query-arrays

Conversation

@like9729

Copy link
Copy Markdown
Contributor

背景
Cloud Atlas OpenAPI 中部分 query 参数为数组类型。CLI 原先将其生成为单值字符串 flag,并把 JSON 数组作为普通字符串发送,导致服务端无法正确过滤。
主要改动

  • OpenAPI query array 参数改为可重复的 stringArray flag。
  • 支持以下序列化规则:
    • form + explode=true:重复 query key。
    • form + explode=false:逗号分隔。
    • spaceDelimited、pipeDelimited。
  • 禁止 JSON 数组字符串静默透传,并提示使用重复 flag。
  • 修复数组参数帮助信息,不再展示 JSON 数组示例。
  • 确保 --query-param 保留重复键。
  • 修复 CLOUD_ATLAS_* 环境变量无法生效的问题,同时兼容旧的 CLOUDATLAS_*。
  • 补充 /openapi Base URL 示例及错误提示。

@jerrynbc
jerrynbc merged commit da810a8 into chaitin:main Sep 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants