-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore(repository-json-schema): replace JsonDefinition with JSONSchema6 #1286
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
Conversation
| // License text available at https://opensource.org/licenses/MIT | ||
|
|
||
| import {JsonDefinition} from '@loopback/repository-json-schema'; | ||
| import {JSONSchema6} from '@loopback/repository-json-schema'; |
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.
import {JSONSchema6 as JSONSchema}
dbac19f to
21289f5
Compare
| export * from './build-schema'; | ||
|
|
||
| import {JSONSchema6} from 'json-schema'; | ||
| export {JSONSchema6}; |
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.
JSONSchema as we talked about here?
|
|
|
|
||
| return result; | ||
| } | ||
|
|
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.
TSDocs here perhaps?
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.
Added
|
@raymondfeng It is used in https://github.com/strongloop/loopback-next/pull/1286/files#diff-432476dd2d984e441d8b4e0af39a39beR68. We could just use |
21289f5 to
6b04f99
Compare
| * Helper function used to interpret boolean values as JSON Schemas. | ||
| * See http://json-schema.org/draft-06/json-schema-release-notes.html | ||
| * @param jsonOrBool converts boolean values into their representative JSON Schemas | ||
| */ |
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.
Nice! nitpick: missing @returns
6b04f99 to
e8a1e51
Compare
We should use |
e8a1e51 to
34607ea
Compare
34607ea to
c8fc00e
Compare
bajtos
left a comment
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.
👏
typescript-json-schemamodule in favor of light-weight and more accurateJSONSchema6repository-json-schema#1132Checklist
npm testpasses on your machinepackages/cliwere updatedexamples/*were updated