Should the generator map dict to object?
cmendible opened this issue · 2 comments
cmendible commented
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.
shaded-enmity commented
Hello @cmendible yes, thanks for looking into this, PR will be appreciated.