swagger-node icon indicating copy to clipboard operation
swagger-node copied to clipboard

Property "readOnly" not working

Open ArjunHariharan opened this issue 7 years ago • 0 comments

I have set a property called id as readOnly but i'm able to pass it in the request. Here is my schema definition

  type: object
  required:
    - name
    - email
    - address
    - city
    - state
    - zip
  properties:
    id:
      type: integer
      readOnly: true
    name:
      type: string
      maxLength: 256
    email:
      type: string
      format: email
      maxLength: 100
    address:
      type: string
      maxLength: 256
    city:
      type: string
      maxLength: 32
    state:
      type: string
      maxLength: 32
    zip:
      type: integer

Swagger version - 0.7.5 Swagger-express-mw version 0.1.0

ArjunHariharan avatar Oct 20 '17 12:10 ArjunHariharan