github.com/w3security/vervet/v5@v5.3.1-0.20230618081846-5bd9b5d799dc/testdata/resources/schemas/common.yaml (about)

     1  JSONAPI:
     2    type: object
     3    properties:
     4      version:
     5        type: string
     6    required: ['version']
     7    additionalProperties: false
     8  
     9  Links:
    10    type: object
    11    properties:
    12      self: { $ref: '#/LinkProperty' }
    13      related: { $ref: '#/LinkProperty' }
    14      first: { $ref: '#/LinkProperty' }
    15      last: { $ref: '#/LinkProperty' }
    16      prev: { $ref: '#/LinkProperty' }
    17      next: { $ref: '#/LinkProperty' }
    18    additionalProperties: false
    19  
    20  LinkProperty:
    21    oneOf:
    22      - type: string
    23      - type: object
    24        properties:
    25          href:
    26            type: string
    27          meta:
    28            type: object
    29            additionalProperties: true
    30        required: [ 'href', 'meta' ]
    31        additionalProperties: false