-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: add analyzeDocuments + SchemaAccessor COMPASS-8799 #216
feat: add analyzeDocuments + SchemaAccessor COMPASS-8799 #216
Conversation
c6196fc
to
1249f8b
Compare
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.
Looking good, left a couple comments/suggestions
f0119b9
to
f25238d
Compare
src/schema-accessor.ts
Outdated
if (this.extendedJSONSchema) return this.extendedJSONSchema; | ||
return this.extendedJSONSchema = await convertors.internalSchemaToExtended(this.internalSchema, options); |
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.
Just a suggestion, but these could all be e.g.
if (this.extendedJSONSchema) return this.extendedJSONSchema; | |
return this.extendedJSONSchema = await convertors.internalSchemaToExtended(this.internalSchema, options); | |
return this.extendedJSONSchema ??= await convertors.internalSchemaToExtended(this.internalSchema, options); |
right?
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.
right, I keep forgetting this exists. thank you!
Co-authored-by: Anna Henningsen <[email protected]>
591fa39
into
COMPASS-6862-schema-export-multiple-formats
Adding
analyzeDocuments() -> SchemaAccessor
as prep for having multiple formats. The interface has been chosen so that:see the tech design for more details.