ebowman / api-first-hand

API-First bootstrapping tool for building RESTful web services from a Swagger/OpenAPI spec
MIT License
142 stars 22 forks source link

HTTP response headers #59

Closed alexec closed 5 years ago

alexec commented 7 years ago

I'm not clear how these work. It the spec I have the following:

      responses:
        200:
          description: Success
          headers:
            CorrelationId:
              type: string
              pattern: ^[A-Za-z0-9]{32}$

But none of the generated code allows you to return this :(

slavaschmidt commented 7 years ago

@alexec Hey, thanks for mentioned this. Indeed, it seems like we forgot to implement this functionality altogether.