Commit cbb5b5df authored by Marco Cavalli's avatar Marco Cavalli
Browse files

Refactor payload body schema in ngsi-ld-api.yaml to include required '@context' property

parent 3ba1f8b4
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -2443,14 +2443,23 @@ paths:
        description: |
          Payload body in the request contains a JSON object that has a root node named @context,
          which represents a JSON-LD "local" context.
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                '@context':
                  $ref:  '#/components/schemas/LdContext'
              required:
                - '@context'
          application/json+ld:
            schema:
              type: object
              properties:
                '@context':
                  $ref:  '#/components/schemas/LdContext'
              required:
                - '@context'
      responses:
        '201':
          description: |