Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneOf property is failing during OAS Schema Validation #1487

Open
RPS044 opened this issue Nov 30, 2023 · 1 comment
Open

OneOf property is failing during OAS Schema Validation #1487

RPS044 opened this issue Nov 30, 2023 · 1 comment
Labels
status:needs-more-information An issue that requires additional information from issue author

Comments

@RPS044
Copy link

RPS044 commented Nov 30, 2023

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" },

@MaggieKimani1
Copy link
Contributor

Please share the properly formatted yaml files you're using for us to reproduce this.

@MaggieKimani1 MaggieKimani1 added the status:needs-more-information An issue that requires additional information from issue author label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-more-information An issue that requires additional information from issue author
Projects
None yet
Development

No branches or pull requests

2 participants