swagger-node
swagger-node copied to clipboard
Property "readOnly" not working
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