-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
compileSchemaValidators error when compiling for "esm" when schema contains "oneOf" #4436
Open
3 of 4 tasks
Comments
tysenmoore-xse
added
bug
needs triage
Initial label given, to be assigned correct labels and assigned
labels
Jan 3, 2025
@tysenmoore-xse This seems more like an issue to file against AJV as we are merely wrapping their engine. |
heath-freenome
added
ajv
and removed
needs triage
Initial label given, to be assigned correct labels and assigned
labels
Jan 10, 2025
@heath-freenome Thanks for the response. I have made changes and AJV has no problem with I am using:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
What theme are you using?
bootstrap-4
Version
5.23.1
Current Behavior
I am able to run
compileSchemaValidators
for commonJS output generation just fine. However, when I try to compile foresm: true
the same schema generates an error. I have found that if I remove the "oneOf" statement the error goes away.Sample schema:
Generation code:
My full schema has several "oneOf" statements so I had to delete definitions to find the originating error-- the numeric reference (e.g. -634615b0) offered nothing useful.
Expected Behavior
I expect the compiler to generate an ES compatible validator.
Steps To Reproduce
Using the attached zip file in Windows:
c:\tmp\rjsfissue
)cd rjsfissue
npm install
npm start
Environment
Anything else?
rsjffIssue.zip
The text was updated successfully, but these errors were encountered: