In the spec currently this is valid: ```yaml type: object required: - name properties: name: type: string ``` However, this is not: ```yaml type: object readOnly: - name properties: name: type: string ``` This is needed because when using a ref (for example, to an enum) this does not work: ```yaml type: object properties: somEnum: readOnly: true $ref: '#definitions/SomeEnum' ```