feathersjs-ecosystem / feathers-swagger

Add documentation to your FeatherJS services and feed them to Swagger UI.
MIT License
225 stars 62 forks source link

Path is not working #144

Closed RickEyre closed 5 years ago

RickEyre commented 5 years ago
defaults: {
    operations: {
      all: {
        'responses[]': {
          403: { description: 'Whoops, unauthorized.' }
        }
      }
    }
  }

I currently have this defined on my application level swagger config. The result is that it adds 'undefined' as a response in the swagger docs.

I see the defaults, so it's trying to merge them, but it's failing on adding the new response?

RickEyre commented 5 years ago

This ended up working instead...

  defaults: {
    operations: {
      all: {
        'responses.403.description': 'unauthorized'
      }
    }
  }