question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update dredd to support nullable attribute

See original GitHub issue

Dredd should properly test against the new nullable attribute supported by MSON and drafter.

md + s1 (string, nullable)

json {"s1":null}

I can help with this however I am not 100% sure if I need to make changes to drafter.js or protagonist?

Thanks.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:52 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
fungjj92commented, Feb 10, 2017
2reactions
pksunkaracommented, Jan 2, 2017

@nicolasiensen Swagger is just JSON Schema, so, you can write something similar for nullable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger-Dredd: specifying more than one type for a parameter
I am trying to implement API testing in my project and i am using Dredd. Now some of my response parameters return 'null'...
Read more >
Internals — Dredd latest documentation
When dropping support for a certain Node.js version, it should be removed from the testing matrix, and it must be delivered as a...
Read more >
apiaryio/dredd - Gitter
Anyone know if nullable is supported by dredd yet? ... { ^ TypeError: Cannot read property 'name' of undefined at blueprintAstToRuntime ...
Read more >
Testing your API with Dredd - Medium
yml file and update the configuration by setting the hookfiles property. dry-run: null hookfiles: dredd-hooks.js language: nodejs sandbox: false
Read more >
Dredd v1.1.0: A Bit Different
A new version of Dredd - the API Documentation testing tool from Apiary Inc. ... author of Dredd - created a hack hook...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found