shaded-enmity/ansible-schema-generator

Should the generator map dict to object?

cmendible opened this issue · 2 comments

Hi @shaded-enmity according to this: ansible/ansible#42033 (review) I had to change the documentation to use dict instead of object.

Current code does not map the dict type:

TYPE_MAP = {
        'int': {'$ref': '#/definitions/ansible_number'},
        'bool': {'$ref': '#/definitions/ansible_truth'},
        'str': 'string',
        'float': 'number',
        'object': 'object'
    }

Is that the place to fix it? If so I can create a PR for it.

Hello @cmendible yes, thanks for looking into this, PR will be appreciated.

Closing since #2 was merged.