@jentic/arazzo-parser 1.0.0-alpha.22 → 1.0.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jentic/arazzo-parser",
3
- "version": "1.0.0-alpha.22",
3
+ "version": "1.0.0-alpha.23",
4
4
  "description": "Parser for Arazzo Documents producing SpecLynx ApiDOM data model.",
5
5
  "keywords": [
6
6
  "arazzo",
@@ -76,5 +76,5 @@
76
76
  "README.md",
77
77
  "CHANGELOG.md"
78
78
  ],
79
- "gitHead": "9f03b72cf574d1e18d83fa85051e2d0e41929491"
79
+ "gitHead": "d3bd28db525dc1c4cf46d2b9ccf83fecade420a1"
80
80
  }
@@ -46,6 +46,16 @@ export declare function parseArazzo(source: Record<string, unknown>, options?: A
46
46
  */
47
47
  export declare function parseArazzo(source: string, options?: ArazzoOptions): Promise<ParseResultElement>;
48
48
 
49
+ /**
50
+ * Parses an Arazzo Document from a string, object, or URI.
51
+ * @param source - The Arazzo Document as a plain object, string content, or URI
52
+ * @param options - Reference options (uses defaultOptions when not provided)
53
+ * @returns A promise that resolves to the parsed Arazzo Document as ApiDOM data model
54
+ * @throws ParseError - When parsing fails for any reason. The original error is available via the `cause` property.
55
+ * @public
56
+ */
57
+ export declare function parseArazzo(source: string | Record<string, unknown>, options?: ArazzoOptions): Promise<ParseResultElement>;
58
+
49
59
  /**
50
60
  * Parses an OpenAPI Document from an object.
51
61
  * @param source - The OpenAPI Document as a plain object
@@ -66,4 +76,16 @@ export declare function parseOpenAPI(source: Record<string, unknown>, options?:
66
76
  */
67
77
  export declare function parseOpenAPI(source: string, options?: OpenAPIOptions): Promise<ParseResultElement>;
68
78
 
79
+ /**
80
+ * Parses an OpenAPI Document from a string, object, or URI.
81
+ * @param source - The OpenAPI Document as a plain object, string content, or URI
82
+ * @param options - Reference options (uses defaultOptions when not provided)
83
+ * @returns A promise that resolves to the parsed OpenAPI Document as ApiDOM data model
84
+ * @throws ParseError - When parsing fails for any reason. The original error is available via the `cause` property.
85
+ * @public
86
+ */
87
+ export declare function parseOpenAPI(source: string | Record<string, unknown>, options?: OpenAPIOptions): Promise<ParseResultElement>;
88
+
89
+ export { ParseResultElement }
90
+
69
91
  export { }