Haskell-OpenAPI-Client-Code-Generator icon indicating copy to clipboard operation
Haskell-OpenAPI-Client-Code-Generator copied to clipboard

Vital Fixes

Open dfithian opened this issue 1 year ago • 0 comments

A couple things I changed here:

  1. I added an option to output all schemas. We have types that come through in a Websocket which I added to the spec. The default behavior is to not include schemas unless they are part of an operation.
  2. Newtypes, which wrap a single ref, weren't getting type aliased correctly. I think I did that now.
components:
  schemas:
    NewtypeFoo:
      description: Wrapper for a foo.
      $ref: '#/components/schemas/InnerFoo'

dfithian avatar May 16 '24 14:05 dfithian