PkiCa:
  required: true
  content:
    application/json:
      schema:
        $ref: '#/components/schemas/PkiCaForm'

PkiCaCertOnly:
  required: true
  content:
    application/json:
      schema:
        $ref: '#/components/schemas/PkiCaFormCertOnly'

PkiCasSearch:
  required: true
  content:
    application/json:
      schema:
        type: object
        properties:
          cursor:
            type: integer
          sort:
            $ref: '#/components/schemas/PkiCasSort'
          query:
            $ref: '#/components/schemas/PkiCasQuery'
          limit:
            type: integer
            minimum: 1
            maximum: 1000
            example: 1

PkiProfile:
  required: true
  content:
    application/json:
      schema:
        $ref: '#/components/schemas/PkiProfileForm'

PkiProfilesSearch:
  required: true
  content:
    application/json:
      schema:
        type: object
        properties:
          cursor:
            type: integer
          sort:
            $ref: '#/components/schemas/PkiProfilesSort'
          query:
            $ref: '#/components/schemas/PkiProfilesQuery'
          limit:
            type: integer
            minimum: 1
            maximum: 1000
            example: 1

PkiProfileSignCsr:
  required: true
  content:
    application/json:
      schema:
        type: object
        required:
          - csr
        properties:
          csr:
           type: string

PkiCert:
  required: true
  content:
    application/json:
      schema:
        $ref: '#/components/schemas/PkiCertForm'

PkiCertsSearch:
  required: true
  content:
    application/json:
      schema:
        type: object
        properties:
          cursor:
            type: integer
          sort:
            $ref: '#/components/schemas/PkiCertsSort'
          query:
            $ref: '#/components/schemas/PkiCertsQuery'
          limit:
            type: integer
            minimum: 1
            maximum: 1000
            example: 1

PkiRevokedCertsSearch:
  required: true
  content:
    application/json:
      schema:
        type: object
        properties:
          cursor:
            type: integer
          sort:
            $ref: '#/components/schemas/PkiRevokedCertsSort'
          query:
            $ref: '#/components/schemas/PkiRevokedCertsQuery'
          limit:
            type: integer
            minimum: 1
            maximum: 1000
            example: 1

PkiScepServer:
  required: true
  content:
    application/json:
      schema:
        $ref: '#/components/schemas/PkiScepServerForm'

PkiScepServersSearch:
  required: true
  content:
    application/json:
      schema:
        type: object
        properties:
          cursor:
            type: integer
          sort:
            $ref: '#/components/schemas/PkiScepServersSort'
          query:
            $ref: '#/components/schemas/PkiScepServersQuery'
          limit:
            type: integer
            minimum: 1
            maximum: 1000
            example: 1