Forum Discussion

poopsy's avatar
poopsy
New Contributor
5 years ago

How to create spec for Object with Sub-Objects with variable names? See example request body inside

Hi there, to clarify, here is the kind of Request Body I would like to spec out:   {   "event" : "eventname",   "payload" : {     "Customer" : {       "Mail" : "user@domain.invalid",       "F...
  • HKosova's avatar
    5 years ago

    "payload" is a string-to-object dictionary. Dictionaries are defined as follows:

    payload:
      type: object
      additionalProperties:
        type: object