Skip to content

readOnly listed on object model level in addition to on fields because $ref overwrites  #872

Open
@JLLeitschuh

Description

@JLLeitschuh

In the spec currently this is valid:

type: object
required:
- name
properties:
  name:
    type: string

However, this is not:

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:

type: object
properties:
  somEnum:
    readOnly: true
    $ref: '#definitions/SomeEnum'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions