Forum Discussion

HenrikHL's avatar
HenrikHL
Frequent Contributor
4 years ago

No syntax error in SwaggerHub - but cannot download a resolved YAML file

Hi, I have a valid Swagger definition (or at least SwaggerHub doesn't report any errors) - but when I try to download the resolved YAML file (or the resolved JSON file) an error is displayed: ...
  • HKosova's avatar
    4 years ago

    Hi HenrikHL,

     

    On lines 59-61, replace

              example: SHIPMENT,EQUIPMENT
              schema:
                default: SHIPMENT,TRANSPORT,EQUIPMENT

    with

              example: [SHIPMENT,EQUIPMENT]
              schema:
                default: [SHIPMENT,TRANSPORT,EQUIPMENT]

    This schema is an array, so schema-level example values must also be arrays.