Skip to content

Conversation

commonism
Copy link
Contributor

SUMMARY

As discussed in #133

This makes use of the OpenAPI description document for the proxmox api
https://github.com/LUMASERV/proxmox-ve-openapi/blob/main/reference/spec.v2.yaml
and
https://github.com/koxudaxi/datamodel-code-generator
to generate pydanticv2 models.

The description document provides a good starting point and allows quick changes.

I've adjusted the description document to be more compact, set some title and fixed some errors.

Having a validated model to work with makes sure the properties exist and have a defined type.
Validation allows catching invalid/unexpected responses before processing them.

This is not complete, it's meant to serve as demo of the building blocks.

ISSUE TYPE
  • Bugfix Pull Request

@Thulium-Drake Thulium-Drake marked this pull request as draft August 2, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant