Update dredd to support nullable attribute
See original GitHub issueDredd 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:
- Created 8 years ago
- Comments:52 (23 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Update: Got it to work with:
type: [string, 'null']
http://stackoverflow.com/questions/38139657/nullable-fields-in-swagger-on-node-js/38140597#38140597
@nicolasiensen Swagger is just JSON Schema, so, you can write something similar for nullable.