Skip to content

API /hardware endpoint: eol field spec vs. actual response inconsistency #16635

@schnoddelbotz

Description

@schnoddelbotz

According to https://snipe-it.readme.io/reference/hardware-list , a GET /hardware 200-OK API response is supposed to contain an eol object. But the actual eol field in the response (e.g. from using "Try it!" on that page) is a plain string -- see attached screenshot; here: "12 months".

I was using oapi-codegen against the snipe openapi specs and all worked fine until I stumbled upon a record that had a non-null eol. Obviously I'd like to avoid patching the autogenerated code ... all specs (v6, v7, v8) seem to be affected.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions