aqueduct icon indicating copy to clipboard operation
aqueduct copied to clipboard

Documentation does not work for headers

Open erikist opened this issue 9 years ago • 3 comments

When using aqueduct document and overriding documentRequestBodyForOperation from HTTPController, you cannot actually document headers as parameters for requests.

I used this to attempt to generate the correct documentation of a header:

      operation.parameters.add(new APIParameter()
        ..parameterLocation = APIParameterLocation.header
        ..name = 'Accepts-Language'
        ..schemaObject = new APISchemaObject.string()
      );

erikist avatar Jul 18 '17 14:07 erikist

👍 Plus query/header/body bindings should automatically be added, I don't think they are currently

itsjoeconway avatar Jul 20 '17 14:07 itsjoeconway

Indeed!

erikist avatar Jul 24 '17 19:07 erikist

done :+1:

itsjoeconway avatar Jan 29 '18 21:01 itsjoeconway