1

I'm trying to build a API base on https://github.com/coinbase/rosetta-specifications/blob/master/api.yaml specification. Now i have run this yaml file in openapi generator for nodejs-express-server (https://openapi-generator.tech/docs/generators/nodejs-express-server)

When i want try to access the endpoint /network/list it give me error:

    {
    "message": "request should have required property 'headers'",
    "errors": [
        {
            "path": ".headers",
            "message": "should have required property 'headers'",
            "errorCode": "required.openapi.validation"
        }
    ]
}

I have add the following header in postman: Content-Type: application/json (as specify in yaml file).

can anyone please let me know what i'm doing wrong?

masternode
  • 61
  • 1
  • 4
  • This seems to be a defect in this server; I'm stalled by it also. See this: https://stackoverflow.com/questions/66420890/open-api-error-request-should-have-required-property-headers-docker – Oscar Jul 15 '22 at 20:25

0 Answers0