-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
plugin: orama schema from json schema #453
base: main
Are you sure you want to change the base?
Conversation
Converts from json schema to orama schema format. Signed-off-by: Brian Evans <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
properties: { | ||
coOrdinates: { | ||
type: 'array', | ||
items: { type: 'array', items: { type: 'number' } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This si supported as
{
coOrdinates: 'number[]'
}
Or I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its a doubly nested array of arrays, data would look like this:
"coOrdinates": [
[5, 7],
[8, 3]
]
As far as I know orama doesn't support indexing that, so the converter to JSONschema would throw an error if it was attempted.
@@ -0,0 +1,13 @@ | |||
# Nextra Plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong title
Converts from json schema to orama schema format.
Sorry I didn't see that someone else had already opened a PR until after I'd implemented it.
Closes #445.
Very simple implementation, doesn't resolve references. That can be done by many other packages on npm, this is just to convert from a fully resolved json schema.