Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

page fields must be required #1012

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

bacongobbler
Copy link
Contributor

@bacongobbler bacongobbler commented Jul 8, 2022

The latest version of the OpenAPI spec states that these objects may be optional, forcing the SDKs like Rust and typescript to generate incorrect data types, breaking backwards compatibility.

https://github.com/fermyon/hippo-openapi/blob/db10524c7cbaa8fdf853e0c4264f4589981fb50b/clients/rust/src/models/app_item_page.rs#L17

This forces the OpenAPI generator to mark these fields as required so they are not marked as nullable.

Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
@bacongobbler bacongobbler added bug Something isn't working API Issues or pull requests that affect the API labels Jul 8, 2022
@bacongobbler bacongobbler merged commit fc9855c into deislabs:main Jul 8, 2022
@bacongobbler bacongobbler deleted the non-nullable-page-size branch July 8, 2022 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Issues or pull requests that affect the API bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant