cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

OneOf property is failing during OAS Schema Validation #306

Closed RPS044 closed 1 month ago

RPS044 commented 10 months ago

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:

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

luisfpg commented 1 month ago

The report is incomplete. Images are not uploaded. Anyway, would need the OpenAPI descriptor and exactly what is failing. As it took a long time for me to reply (sorry, not having time for this project) I'm closing. If the issue still persists, please, send more data and I'll reopen.