Create credential proof with incorrect ID (space) - returns 200 OK

Summary:

When creating credential proof that contains incorrect ID in credentialSubject field, instead of receiving "invalid format of subject id" the proof is created with status code 200 OK.

Request Body:

{
    "@context": [
        "https://www.w3.org/2018/credentials/v1",
        "https://w3id.org/security/suites/jws-2020/v1"
    ],
    "id": "did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation",
    "type": "VerifiablePresentation",
    "verifiableCredential": [
        {
            "@context": [
                "https://www.w3.org/2018/credentials/v1",
                "https://w3id.org/security/suites/jws-2020/v1",
                "https://schema.org"
            ],
            "credentialSubject": {
                "allow": true,
                "id": " "
            },
            "issuanceDate": "2022-07-01T11:07:57.975459274Z",
            "issuer": "did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation",
            "type": "VerifiableCredential"
        }
    ]
}

Response:

HTTP/1.1 200 OK
date: Thu, 04 Aug 2022 09:05:38 GMT
content-type: application/json
content-length: 1018
strict-transport-security: max-age=15724800; includeSubDomains
{
    "@context": [
        "https://www.w3.org/2018/credentials/v1",
        "https://w3id.org/security/suites/jws-2020/v1"
    ],
    "credentialSubject": null,
    "id": "did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation",
    "issuer": "",
    "proof": {
        "created": "2022-08-04T09:05:38.176623401Z",
        "jws": "eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEUCIGXBZDkSBE8yM91EFqr5Zzj3y1ZJ6-4RPGpRMpANvIURAiEAuLs73zEO0ztY6_yNWkRPSCguT0HPbYl1zKhcWyh8FIw",
        "proofPurpose": "assertionMethod",
        "type": "JsonWebSignature2020",
        "verificationMethod": "did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
    },
    "type": "VerifiablePresentation",
    "verifiableCredential": [
        {
            "@context": [
                "https://www.w3.org/2018/credentials/v1",
                "https://w3id.org/security/suites/jws-2020/v1",
                "https://schema.org"
            ],
            "credentialSubject": {
                "allow": true,
                "id": " "
            },
            "issuanceDate": "2022-07-01T11:07:57.975459274Z",
            "issuer": "did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation",
            "type": "VerifiableCredential"
        }
    ]
}