Hi,
I am trying to use:
com.atlassian.oai swagger-request-validator-core 2.40.0I use the following code:
I am validating an invalid payload but I get no validation errors in the validationReport.
I am using openapi 3.0.1 as schema and use the following payload.
{
"event": {
"commonEventHeader": {
"version": "4",
"vesEventListenerVersion": 7,
"domain": "fault",
"eventId": "stndDefined-gNB_Nokia000001",
"eventName": "stndDefined-gNB-Nokia-PowerLost",
"stndDefinedNamespace": "3GPP-FaultSupervision",
"startEpochMicrosec": 1413378172000000,
"lastEpochMicrosec": 1413378172000000,
"reportingEntityName": "ibcx0001vm002oam001",
"sourceName": "scfx0001vm002cap001",
"sequence": 1,
"priority": "High"
},
"stndDefinedFields": {
"schemaReference": "http://localhost:8080/external1#components/schemas/NotifyNewAlarm",
"data": {
"href": 1,
"uri": "1",
"notificationId": 1,
"notificationType": "notifyNewAlarm",
"eventTime": "xyz",
"systemDN": "xyz",
"probableCause": 1,
"perceivedSeverity": "INDETERMINATE",
"rootCauseIndicator": false,
"specificProblem": "xyz",
"correlatedNotifications": [],
"backedUpStatus": true,
"backUpObject": "xyz",
"trendIndication": "MORE_SEVERE",
"thresholdInfo": {
"observedMeasurement": "new",
"observedValue": 123
},
"stateChangeDefinition": {
},
"monitoredAttributes": {
"newAtt": "new"
},
"proposedRepairActions": "xyz",
"additionalText": "xyz",
"additionalInformation": {
"addInfo": "new"
},
"alarmId": 1,
"alarmType": "COMMUNICATIONS_ALARM_INVALID"
},
"stndDefinedFieldsVersion": "1.0"
}
}
}
We used to use openapi4j to do validation but the library is decommissioned.
Any ideas?
br,
//mike
