Skip to content

password data type redaction should not be limited to UI #3404

Closed

Description

@mgrafl

The password setting of the modifier property format is described in the Data Types section as "A hint to UIs to obscure input."

`string` | `password` | A hint to UIs to obscure input.

Since the OpenAPI Specification is also relevant for backends, the description should be generalized, e.g., "A hint to UIs and backend systems to obscure/redact the value."

An example for the necessity of redacting the value of a password field is in the toString method generated by the openapi-generator tool: OpenAPITools/openapi-generator#16851

Activity

  1. MikeRalphson commented on Oct 19, 2023

    @MikeRalphson
    Member

    This looks like a useful improvement, thank you. Do you have time to work up a PR on the v3.1.1-dev branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions