1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# External path definitions. openapi: "3.1.0" paths: /widgets: post: requestBody: required: true content: application/json: schema: $interface: "Widget#Post" responses: 201: content: application/json: schema: $interface: "Widget"