core-agent-ide/codex-rs/app-server/tests/suite/v2
Owen Lin db2aa57d73
[app-server] small fixes for JSON schema export and one-of types (#6614)
A partner is consuming our generated JSON schema bundle for app-server
and identified a few issues:
- not all polymorphic / one-of types have a type descriminator
- `"$ref": "#/definitions/v2/SandboxPolicy"` is missing
- "Option<>" is an invalid schema name, and also unnecessary

This PR:
- adds the type descriminator to the various types that are missing it
except for `SessionSource` and `SubAgentSource` because they are
serialized to disk (adding this would break backwards compat for
resume), and they should not be necessary to consume for an integration
with app-server.
- removes the special handling in `export.rs` of various types like
SandboxPolicy, which turned out to be unnecessary and incorrect
- filters out `Option<>` which was auto-generated for request params
that don't need a body

For context, we currently pull in wayyy more types than we need through
the `EventMsg` god object which we are **not** planning to expose in API
v2 (this is how I suspect `SessionSource` and `SubAgentSource` are being
pulled in). But until we have all the necessary v2 notifications in
place that will allow us to remove `EventMsg`, we will keep exporting it
for now.
2025-11-13 16:25:17 -08:00
..
account.rs [App-server] Implement account/read endpoint (#6336) 2025-11-06 19:43:13 -08:00
mod.rs chore: move relevant tests to app-server/tests/suite/v2 (#6289) 2025-11-06 10:53:17 -08:00
model_list.rs Reasoning level update (#6586) 2025-11-13 06:24:36 +00:00
rate_limits.rs chore: move relevant tests to app-server/tests/suite/v2 (#6289) 2025-11-06 10:53:17 -08:00
thread_archive.rs [app-server] feat: v2 Thread APIs (#6214) 2025-11-05 20:28:43 +00:00
thread_list.rs [app-server] small fixes for JSON schema export and one-of types (#6614) 2025-11-13 16:25:17 -08:00
thread_resume.rs [app-server] feat: thread/resume supports history, path, and overrides (#6483) 2025-11-12 22:02:43 +00:00
thread_start.rs [app-server] feat: expose additional fields on Thread (#6338) 2025-11-07 04:08:45 +00:00
turn_interrupt.rs [app-server] feat: v2 Turn APIs (#6216) 2025-11-06 16:36:36 +00:00
turn_start.rs [app-server] feat: v2 Turn APIs (#6216) 2025-11-06 16:36:36 +00:00