-
Notifications
You must be signed in to change notification settings - Fork 0
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
Reuse index.json in fullIndex.json #7
Comments
Can do something like https://stackoverflow.com/questions/52566472/how-to-extend-a-schema-in-json-schema however, will need 3 schema:
|
We solved this problem, but it required adding the following bloat: https://github.com/manoj-pillay-10gen/simple-search-index-validator/blob/main/schema/fullIndex.json#L12-L17 Note that this is not necessary if using JSON Schema draft 2019-09 onwards. We could replace |
Currently, we have to duplicate code between index.json and fullIndex.json . Instead. there may be a way to extend siblings of a schema to eliminate duplication and drift caused from maintaining redundant copies.
fullIndex.json is more than ornamental, because the API which needs the auto-generate YAML spec requires the additional components available in fullIndex.json.
The text was updated successfully, but these errors were encountered: