Skip to content

feat(api): move SDK to typed models and harden OpenAPI tooling#38

Open
smekcio wants to merge 11 commits intomainfrom
feat/typed-model-api
Open

feat(api): move SDK to typed models and harden OpenAPI tooling#38
smekcio wants to merge 11 commits intomainfrom
feat/typed-model-api

Conversation

@smekcio
Copy link
Copy Markdown
Owner

@smekcio smekcio commented Mar 27, 2026

Summary

  • move the public SDK from dict-based request and response handling to typed OpenAPI-backed models across clients, workflows, CLI adapters, and exceptions
  • add OpenAPI tooling that downloads the live KSeF schema, validates generated models in CI, and falls back to the last committed snapshot when the endpoint is temporarily unavailable
  • simplify the public integration path with certificate-selection and invoice-query helpers, then align README, workflows, and runnable examples to the lower-ceremony typed API

Testing

  • python tools/lint.py
  • python -m pytest -q
  • python tools/generate_openapi_models.py --check --output src/ksef_client/openapi_models.py
  • python tools/check_coverage.py --src src/ksef_client/clients

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