Skip to content

Conversation

burck1
Copy link

@burck1 burck1 commented Sep 20, 2025

ref: #746

Changes

  • Added a dev dependency on datamodel-code-generator
  • Added a dependency on typing-extensions
  • Added a poetry script to download the Management API's OpenAPI Spec to the repo
    • poetry run download-openapi
  • Added a poetry script and [tool.datamodel-codegen] config to run the datamodel code generator
    • poetry run datamodel-codegen
  • Downloaded the latest OpenAPI Spec and committed.
  • Ran the code generator to create auth0/management/models.py and committed.
  • As an example, updated auth0/management/clients.py to use the generated models.

References

Testing

Run poetry run download-openapi and poetry run datamodel-codegen. Then run the unit tests.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@burck1 burck1 changed the title [PROPOSAL] Progressive typing using TypedDict, the datamodel-code-generator library, and the OpenAPI Spec [PROPOSAL] Improved type hints using TypedDict, the datamodel-code-generator library, and the OpenAPI Spec Sep 20, 2025
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