Skip to content

Response object for signature-validations

endpoint /eidas-bridge/v1/signature-validations just returns a response status 204 but no associated object. This causes a problem when generating client code via the openapi generator.

Please add content to the response.

proposal:

responses:
    "204":
        description: Valid
        content:
        application/json:
            schema:
            $ref: "#/components/schemas/ValidationResult"

and the response model:

ValidationResult:
      required:
        - checks
        - errors
        - warnings
      type: object
      properties:
        indication:
          type: string
          enum:
            - TOTAL_PASSED
            - TOTAL_FAILED
            - INDETERMINATE
          example:
            - TOTAL_PASSED
        checks:
          type: array
          description: The checks performed
          example:
            - proof
          items:
            type: string
            description: The checks performed
            example: '["proof"]'
        warnings:
          type: array
          description: Warnings
          example: [ ]
          items:
            type: string
            description: Warnings
            example: '[]'
        errors:
          type: array
          description: Errors
          example: [ ]
          items:
            type: string
            description: Errors
            example: '[]'
Edited by Matteo Marangoni