Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to explicitly define an empty return data #84

Open
adrifmonte opened this issue Jun 11, 2021 · 1 comment
Open

Unable to explicitly define an empty return data #84

adrifmonte opened this issue Jun 11, 2021 · 1 comment

Comments

@adrifmonte
Copy link

adrifmonte commented Jun 11, 2021

For example:

server.routes([
  {
    path: '/dogs',
    methods: [
      {
        type: 'get',
        data: undefined
        // data: null
        // data: ''
      },
    ],
  },
]);

This will generate the following log after accessing /dogs:

You probably forgot to create the fallback fixture file /docs Error: Fixture not found

@fsmaia
Copy link
Collaborator

fsmaia commented Jun 11, 2021

Interesting! @rhberro, maybe we could handle the empty string scenario as a valid empty response?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants