openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

OneOf property is failing during OAS Schema Validation

Open RPS044 opened this issue 1 year ago • 1 comments
trafficstars

Hello Team,

Requesting you to please check this issue and help. Performing schema validation with oneOf, discriminator and mapping property in oas3.0.

Error:

{ "fault": { "faultstring": "OASValidation MAM-EXT-SpecValidation with resource "oas://openapi.yaml": failed with reason: "[ERROR - An error occurred during schema validation - com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException.: []]"", "detail": { "errorcode": "steps.oasvalidation.Failed" } } }

yaml file looks like: image

image

Json payload looks like:

{ "billableHeader":{ "sourceSystem":"UPSTREAM_APP", "sourceTransactionType":"INVOICE", "eventType":"BATCH", "messageCreationDatetime":"20220811140203", "timeZoneCode":"GMT", "isBulkProcessing":true, "product":"Airlcl" } }

RPS044 avatar Nov 30 '23 05:11 RPS044

@ferdikoomen Please help us and totally stucked with this issue. Thankyou!

RPS044 avatar Nov 30 '23 08:11 RPS044