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

Feature : Restrictive / Lock down API specification #72

Open
LasneF opened this issue Dec 22, 2023 · 2 comments
Open

Feature : Restrictive / Lock down API specification #72

LasneF opened this issue Dec 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@LasneF
Copy link

LasneF commented Dec 22, 2023

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 ...

@daveshanley
Copy link
Member

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 daveshanley added the enhancement New feature or request label Dec 27, 2023
@LasneF
Copy link
Author

LasneF commented Feb 6, 2024

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

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

No branches or pull requests

2 participants