Skip to content

api: add test — GET /assets returns a stable field set matching the OpenAPI schema #191

Description

@valoryyaa-byte

Type: Test coverage

Location: api/src/routes/assets.rs

What's missing
Serialize the response and assert its key set equals the schema's required list, so drift is caught in CI.

How to add it
Use the existing routes::test_support::state_with helper to build an
AppState from a fixed Snapshot, call the handler directly, and assert on
the serialized body. Follow the patterns already in api/tests/api_responses.rs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions