Hello, I am using the Genesys swagger.json to generate c# classes however the default tool for this (NSwag), generated invalid code often generating class with tail else statements that did not contain any code this code will cause the project to not builds correctly.
I can see this being an issue before in https://developer.genesys.cloud/forum/t/swagger-spec-does-not-validate/4920 and can see that at the time there was 4 errors. This has changed to 44 errors when using an online swagger validator https://validator.swagger.io/, which might be why Nswag is not generating valid code, the errors are listed below
- "attribute paths.'/api/v2/users/{userId}/callforwarding'(get).responses.424.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/contacts/add'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/contacts/remove'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/contacts/update'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/notes/add'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/notes/remove'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/notes/update'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/organizations/add'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/organizations/remove'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/organizations/update'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/relationships/add'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/relationships/remove'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/bulk/relationships/update'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/{contactId}/notes'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/{contactId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/{contactId}/identifiers'(patch).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/schemas/{schemaId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions/{versionId}'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/schemas'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts/schemas'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/contacts'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/merge/contacts'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/scan/contacts'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/{externalOrganizationId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/schemas/{schemaId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/schemas'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/schemas'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/organizations'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/scan/organizations'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/scan/notes'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/relationships/{relationshipId}'(put).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/relationships'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/externalcontacts/scan/relationships'(get).responses.422.description is missing",
- "attribute paths.'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}'(delete).responses.424.description is missing",
- "attribute paths.'/api/v2/speechandtextanalytics/sentimentfeedback'(post).responses.422.description is missing",
- "attribute paths.'/api/v2/users/{userId}/station/associatedstation/{stationId}'(put).responses.424.description is missing",
- "attribute paths.'/api/v2/users/{userId}/station'(get).responses.424.description is missing",
- "attribute paths.'/api/v2/voicemail/policy'(put).responses.424.description is missing"
Is Genesys' stance on this the same as it was in the mentioned forum where this is an issue that is labeled "Will not fix"
Kind regards