agama/rust/agama-server
Imobach González Sosa a43198fef9
Fix OpenAPI spec for ProblemDetails error responses
Error responses were documented with application/json instead of
application/problem+json, and the schema was inlined at every
location instead of using a $ref.

Changes:
- Implement custom OperationOutput trait for ProblemDetailsResponse
- Use ctx.schema.subschema_for::<ProblemDetails>() for schema reference
- Replace Json<ProblemDetails> with ProblemDetailsResponse in all docs
- Specify application/problem+json as media type

Error responses now correctly show:
  content:
    application/problem+json:
      schema:
        $ref: '#/components/schemas/ProblemDetails'

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-06-11 23:37:40 +01:00
..
share chore(rust): use a better jwt_secret example 2024-05-24 00:12:36 +01:00
src Fix OpenAPI spec for ProblemDetails error responses 2026-06-11 23:37:40 +01:00
tests Fix server_service integration tests 2026-06-09 10:01:06 +01:00
Cargo.toml Translate profile errors 2026-06-11 14:34:59 +01:00
tasks.md feat: add a new config-based API 2025-10-03 13:27:31 +01:00