wiretap icon indicating copy to clipboard operation
wiretap copied to clipboard

Feature : Restrictive / Lock down API specification

Open LasneF opened this issue 2 years ago • 3 comments

do you think it would be possible to kind of lock down the spec Kind of setting aditionnal Properties to false with a flag in wiretab command line

meanning given the spec "schema" : { "type" : "object", "properties" : { "message" : {"type" : "string"}, "who" : {"type" : "string"} }

if i send "message" : "Hello" , "who":"bob" , "offender":12 , Flag Off = it says green , FlagOn = it says red the topic beeing to spot that the server returns undocumented fields ...

LasneF avatar Dec 22 '23 08:12 LasneF

I don't see why not. I would assume that the JSON schema lib we use would handle that, but if not, it's logic that can be added in to our lib.

daveshanley avatar Dec 27 '23 16:12 daveshanley

notice that redocly issue a warning for such use case and i think it is wise

LasneF avatar Feb 06 '24 15:02 LasneF