I'm looking for a way to deal with sensitive fields (like passwords) in the 
swagger models.

For example:
I have a Credentials model:

  "username": "johndoe"
  "password": "123456"

and when something goes wrong I log the exception and the input model using 
the model's toString() method.
This means that I'm logging passwords.

I've tried to set the field's property writeOnly to true (OAS 3.0) but that 
only affects the documentation not the generated code.

How do you guys handle similar situations?

Thank you.

You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to