Automatic module generation from OpenAPI spec? #357
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
status: accepted
This issue has been accepted by the maintainers team for implementation
type: enhancement
ISSUE TYPE
SUMMARY
When Nautobot adds new data models and new REST API endpoints in support of those models, nautobot-ansible currently must be manually updated to add new modules (#282, #288, etc.). Similarly, when new fields are added to existing models/endpoints, or even just if some fields were missed in the initial implementation, manual updates are also needed (#273, #275, etc.).
Since ultimately these modules are a "wrapper" around the Nautobot REST API, it seems like it should be possible to (at least in large part) automatically generate module definitions based on Nautobot's REST API OpenAPI schema. A relatively small amount of automation in this area could greatly reduce the amount of manual effort needed to update and maintain these modules.
Possible inspiration:
ansible-creator
ansible-community/ansible.content_builder#84 this is deprecated in favor of https://github.com/ansible/ansible-creator, but see Generate modules from OpenAPI spec ansible/ansible-creator#106The text was updated successfully, but these errors were encountered: