Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Password format does not work in parameter #3031

Closed
1Map opened this issue May 4, 2017 · 0 comments
Closed

Password format does not work in parameter #3031

1Map opened this issue May 4, 2017 · 0 comments

Comments

@1Map
Copy link

1Map commented May 4, 2017

I try the following YAML in the UI (You can even try it on your online editor http://editor.swagger.io by pasting the below YAML in there - also does not work). Problem is in the UI the password format does not work and does not obscure the characters.

It renders it as:
<input type="text" class="" value="" placeholder="password - Password.">

and is suppose to render as:
<input type="password" class="" value="" placeholder="password - Password.">

The YAML to test on below:

swagger: '2.0'
info:
  title: TEST API
  description: Some Test
  version: 1.0.0
host: some.url.com
schemes:
  - http
basePath: /v1
produces:
  - application/json
paths:
  /#:
    get:
      summary: Login User
      description: |
        Login a user.
      parameters:
        - name: username
          in: query
          description: Username.
          required: true
          type: string
        - name: password
          in: query
          description: Password.
          required: true
          type: string
          format: password
      tags:
        - Login
      responses:
        '200':
          description: Your result
          schema:
            $ref: '#/definitions/User'
        default:
          description: Unexpected error
          schema:
            $ref: '#/definitions/Error'
definitions:
  User:
    type: object
    properties:
      user_id:
        type: string
        description: >-
          Unique identifier representing a user.
  Error:
    type: object
    properties:
      code:
        type: integer
        format: int32
      message:
        type: string
      fields:
        type: string
@bodnia bodnia closed this as completed in 5574a6c May 11, 2017
bodnia added a commit that referenced this issue May 11, 2017
@lock lock bot unassigned bodnia Jul 3, 2019
@lock lock bot locked and limited conversation to collaborators Jul 3, 2019
JuanSW18 pushed a commit to Digital-Paw/digital-paw-swagger-ui that referenced this issue Aug 23, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants