@jentic/arazzo-validator 1.0.0-alpha.25 → 1.0.0-alpha.26
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.26](https://github.com/jentic/jentic-arazzo-tools/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2026-03-11)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **parser:** add consistent naming for exported options ([#134](https://github.com/jentic/jentic-arazzo-tools/issues/134)) ([cfa2a54](https://github.com/jentic/jentic-arazzo-tools/commit/cfa2a54fad0189da7d26ca4c76b63bfcc3c60eec))
|
|
11
|
+
|
|
6
12
|
# [1.0.0-alpha.25](https://github.com/jentic/jentic-arazzo-tools/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2026-03-11)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jentic/arazzo-validator",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.26",
|
|
4
4
|
"description": "Validator & Linter for Arazzo Documents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arazzo",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"license": "Apache-2.0",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/runtime-corejs3": "^7.28.4",
|
|
59
|
-
"@jentic/arazzo-parser": "1.0.0-alpha.
|
|
59
|
+
"@jentic/arazzo-parser": "1.0.0-alpha.26",
|
|
60
60
|
"@speclynx/apidom-ls": "^2.4.2",
|
|
61
61
|
"@speclynx/apidom-ns-arazzo-1": "^4.0.3",
|
|
62
62
|
"@speclynx/apidom-reference": "^4.0.3",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"README.md",
|
|
78
78
|
"CHANGELOG.md"
|
|
79
79
|
],
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "fa8637a6e4ad80e321a5808da52e4346a1a1f0d7"
|
|
81
81
|
}
|
|
@@ -15,7 +15,7 @@ var _validate = require("./validate.cjs");
|
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
const defaultArazzoResolveOptions = exports.defaultArazzoResolveOptions = _arazzoParser.
|
|
18
|
+
const defaultArazzoResolveOptions = exports.defaultArazzoResolveOptions = _arazzoParser.defaultParseArazzoOptions.resolve;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Validates an Arazzo Document from a URI (file path or HTTP(S) URL).
|
|
@@ -62,7 +62,7 @@ const defaultArazzoResolveOptions = exports.defaultArazzoResolveOptions = _arazz
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
async function validateURI(uri, context = {}, resolveOptions = {}) {
|
|
65
|
-
const mergedOptions = (0, _empty.mergeOptions)(_arazzoParser.
|
|
65
|
+
const mergedOptions = (0, _empty.mergeOptions)(_arazzoParser.defaultParseArazzoOptions, {
|
|
66
66
|
resolve: resolveOptions
|
|
67
67
|
});
|
|
68
68
|
const buffer = await (0, _empty.readFile)(uri, mergedOptions);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defaultParseArazzoOptions } from '@jentic/arazzo-parser';
|
|
2
2
|
import { readFile, mergeOptions } from '@speclynx/apidom-reference/configuration/empty';
|
|
3
3
|
import { createTextDocument } from "../document.mjs";
|
|
4
4
|
import { validate } from "./validate.mjs";
|
|
@@ -10,7 +10,7 @@ import { validate } from "./validate.mjs";
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
export const defaultArazzoResolveOptions =
|
|
13
|
+
export const defaultArazzoResolveOptions = defaultParseArazzoOptions.resolve;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Validates an Arazzo Document from a URI (file path or HTTP(S) URL).
|
|
@@ -57,7 +57,7 @@ export const defaultArazzoResolveOptions = defaultArazzoParserOptions.resolve;
|
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
59
59
|
export async function validateURI(uri, context = {}, resolveOptions = {}) {
|
|
60
|
-
const mergedOptions = mergeOptions(
|
|
60
|
+
const mergedOptions = mergeOptions(defaultParseArazzoOptions, {
|
|
61
61
|
resolve: resolveOptions
|
|
62
62
|
});
|
|
63
63
|
const buffer = await readFile(uri, mergedOptions);
|