I am working on a web server with flask/connexion and i am configuring it via a swagger.yml file. I am not allowed to show the original file but I want to do something like this in the parameters section for a post operation:
- name: someparam
...
schema:
type: object
properties:
someprop:
type: object
properties:
my_nested_object:
...
The problem is the following: someprop is a java script object which should be saved in a json file and the key/name of my_nested_object is only known at runtime because someprop will contain more than one object of its "type". Hence the key identifies the object.
Edit: I just realized that also the count of nested objects is a problem since I don't know it at runtime either. Is there really no way to define "dynamic" objects in my swagger config?
Is there any (alternative) way to make this work?