The referenced data model (Body Parameters) is not visible in the UI html. I tried it in Swagger Hub with the same negative results.

Here is the troublesome segment from the API yaml:

parameters
  -in: body
   schema:
     $ref: '#/definitions/TransactionDetails
   name: Transaction Details
   description: Body Parameters
   required: true

No errors or issues are reported in Stoplight or Swagger Hub.

Any help much appreciated!

The referenced data model (Body Parameters) is not visible in the UI html. I tried it in Swagger Hub with the same negative results.

I am expecting the Body section in the UI to be populated with parameters from the model file /definitions/TransactionDetails. It remains empty. It is almost as if the model is not active or available.

1

There are 1 best solutions below

0
On

I found the answer:

The swagger 2 file must contain the following:

consumes:

  • application/json produces:
  • application/json