Skip to content

Fix SchemaDocument being called with the wrong number of arguments.#169

Closed
pawREP wants to merge 1 commit into
microsoft:masterfrom
pawREP:fix/schemaDocument-bad-args
Closed

Fix SchemaDocument being called with the wrong number of arguments.#169
pawREP wants to merge 1 commit into
microsoft:masterfrom
pawREP:fix/schemaDocument-bad-args

Conversation

@pawREP

@pawREP pawREP commented May 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #121

Mirroring my comment on the issue here for visibility.

The current code doesn't compile because of bad arguments. There is no 4 parameter constructor for SchemaDocument and there never was one in previous rapidjson versions either. Looking at 9428f11, where this issue was introduced, it seems like someone tried to change the call from SchemaDocument(document, this) to SchemaDocument(document, nullptr, 0) when the rapidjson version was bumped but forgot to remove the "this". That would at least be syntactically correct but still logically false and results in test failures.

@SergioRZMasson

Copy link
Copy Markdown
Contributor

This is probably due to the rapidjson version that we have under External/RapidJSON/CMakeRapidJSONDownload.txt.in, in order for this to work we will probably need to update it to use the latest version of rapidjson.

@pawREP

pawREP commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

This issue originated from a misconfiguration on my system. My project had pulled in an outdated version of rapidjson. Case close.

@pawREP pawREP closed this Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compile error, SchemaValidation

2 participants