You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Parses the given JSON schema, resolves any JSON references, and bundles all external references
236
-
* into the main JSON schema. This produces a JSON schema that only has *internal* references,
237
-
* not any *external* references.
238
-
*
239
-
* @param [path] - The file path or URL of the JSON schema
240
-
* @param [schema] - A JSON schema object. This object will be used instead of reading from `path`.
241
-
* @param [options] - Options that determine how the schema is parsed, resolved, and dereferenced
242
-
* @param [callback] - An error-first callback. The second parameter is the bundled JSON schema object
243
-
* @returns - The returned promise resolves with the bundled JSON schema object.
244
-
*/
245
221
/**
246
222
* Bundles all referenced files/URLs into a single schema that only has internal `$ref` pointers. This lets you split-up your schema however you want while you're building it, but easily combine all those files together when it's time to package or distribute the schema to other people. The resulting schema size will be small, since it will still contain internal JSON references rather than being fully-dereferenced.
* Parses the given JSON schema, resolves any JSON references, and bundles all external references
274
-
* into the main JSON schema. This produces a JSON schema that only has *internal* references,
275
-
* not any *external* references.
276
-
*
277
-
* @param [path] - The file path or URL of the JSON schema
278
-
* @param [schema] - A JSON schema object. This object will be used instead of reading from `path`.
279
-
* @param [options] - Options that determine how the schema is parsed, resolved, and dereferenced
280
-
* @param [callback] - An error-first callback. The second parameter is the bundled JSON schema object
281
-
* @returns - The returned promise resolves with the bundled JSON schema object.
282
-
*/
283
248
/**
284
249
* Bundles all referenced files/URLs into a single schema that only has internal `$ref` pointers. This lets you split-up your schema however you want while you're building it, but easily combine all those files together when it's time to package or distribute the schema to other people. The resulting schema size will be small, since it will still contain internal JSON references rather than being fully-dereferenced.
285
250
*
@@ -314,16 +279,6 @@ export class $RefParser {
314
279
}
315
280
}
316
281
317
-
/**
318
-
* Parses the given JSON schema, resolves any JSON references, and dereferences the JSON schema.
319
-
* That is, all JSON references are replaced with their resolved values.
320
-
*
321
-
* @param [path] - The file path or URL of the JSON schema
322
-
* @param [schema] - A JSON schema object. This object will be used instead of reading from `path`.
323
-
* @param [options] - Options that determine how the schema is parsed, resolved, and dereferenced
324
-
* @param [callback] - An error-first callback. The second parameter is the dereferenced JSON schema object
325
-
* @returns - The returned promise resolves with the dereferenced JSON schema object.
326
-
*/
327
282
/**
328
283
* Dereferences all `$ref` pointers in the JSON Schema, replacing each reference with its resolved value. This results in a schema object that does not contain any `$ref` pointers. Instead, it's a normal JavaScript object tree that can easily be crawled and used just like any other JavaScript object. This is great for programmatic usage, especially when using tools that don't understand JSON references.
* Parses the given JSON schema, resolves any JSON references, and dereferences the JSON schema.
356
-
* That is, all JSON references are replaced with their resolved values.
357
-
*
358
-
* @param [path] - The file path or URL of the JSON schema
359
-
* @param [schema] - A JSON schema object. This object will be used instead of reading from `path`.
360
-
* @param [options] - Options that determine how the schema is parsed, resolved, and dereferenced
361
-
* @param [callback] - An error-first callback. The second parameter is the dereferenced JSON schema object
362
-
* @returns - The returned promise resolves with the dereferenced JSON schema object.
363
-
*/
364
309
/**
365
310
* Dereferences all `$ref` pointers in the JSON Schema, replacing each reference with its resolved value. This results in a schema object that does not contain any `$ref` pointers. Instead, it's a normal JavaScript object tree that can easily be crawled and used just like any other JavaScript object. This is great for programmatic usage, especially when using tools that don't understand JSON references.
0 commit comments