Commit 7ad433c2 authored by daniel-gonzalez-sanchez's avatar daniel-gonzalez-sanchez
Browse files

Show the @context field on top of the request and response bodies for the...

Show the @context field on top of the request and response bodies for the Context Information Consumption operations. Fixing issues with examples regarding /type /attributes endpoints for considering the @context inside the items section for EntityType[] and Attribute[] schemas.
parent 97470e37
Loading
Loading
Loading
Loading
+25 −25
Original line number Diff line number Diff line
@@ -153,11 +153,11 @@ paths:
                type: array
                items:
                  allOf:
                    - $ref: '#/components/schemas/Entity'
                    - type: object
                      properties:
                        '@context':
                          $ref:  '#/components/schemas/LdContext'
                    - $ref: '#/components/schemas/Entity'
                    - required:
                        - id
                        - type
@@ -222,11 +222,11 @@ paths:
            application/json+ld:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Entity'
                  - type: object
                    properties:
                      '@context':
                        $ref:  '#/components/schemas/LdContext'
                  - $ref: '#/components/schemas/Entity'
                  - required:
                      - id
                      - type
@@ -2248,16 +2248,16 @@ paths:
                        '@context':
                          $ref:  '#/components/schemas/LdContext'
                    - $ref: '#/components/schemas/EntityTypeList'
                  - allOf:
                  - type: array
                    items:
                      allOf:
                        - type: object
                          required:
                            - '@context'
                          properties:
                            '@context':
                             $ref:  '#/components/schemas/LdContext'
                    - type: array
                      items:
                        $ref: '#/components/schemas/EntityType'
                        - $ref: '#/components/schemas/EntityType'
        '400':
          $ref: '#/components/responses/BadRequest'
  /types/{type}:
@@ -2299,13 +2299,13 @@ paths:
            application/json+ld:
              schema:
                allOf:
                  - $ref: '#/components/schemas/EntityTypeInfo'
                  - type: object
                    required:
                      - '@context'
                    properties:
                      '@context':
                        $ref:  '#/components/schemas/LdContext'
                  - $ref: '#/components/schemas/EntityTypeInfo'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
@@ -2367,23 +2367,23 @@ paths:
              schema:
                oneOf:
                  - allOf:
                    - $ref: '#/components/schemas/AttributeList'
                    - type: object
                      required:
                        - '@context'
                      properties:
                        '@context':
                          $ref:  '#/components/schemas/LdContext'
                  - allOf:
                    - $ref: '#/components/schemas/AttributeList'
                  - type: array
                    items:
                        $ref: '#/components/schemas/Attribute'
                      allOf:
                        - type: object
                          required:
                            - '@context'
                          properties:
                            '@context':
                             $ref:  '#/components/schemas/LdContext'
                        - $ref: '#/components/schemas/Attribute'
        '400':
          $ref: '#/components/responses/BadRequest'
  /attributes/{attrId}:
@@ -2424,13 +2424,13 @@ paths:
            application/json+ld:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Attribute'
                  - type: object
                    required:
                      - '@context'
                    properties:
                      '@context':
                        $ref:  '#/components/schemas/LdContext'
                  - $ref: '#/components/schemas/Attribute'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':