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
-**External file `$ref` resolution** - Split specs across multiple files with relative `$ref` references (auto-detected from spec path, or set `base-path` in config)
46
47
47
48
### Programmatic Access
48
49
-**Runtime package** - Public API for working with generated types
Copy file name to clipboardExpand all lines: configuration-schema.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,10 @@
63
63
"type": "object",
64
64
"description": "UserContext is the map of user-provided context values to be used in templates user overrides.",
65
65
"additionalProperties": true
66
+
},
67
+
"base-path": {
68
+
"type": "string",
69
+
"description": "BasePath is the directory used to resolve relative $ref file references. When set, external file references like './common.yaml#/...' will be resolved relative to this directory. Typically set to the directory containing the spec file. When using the CLI, this is auto-detected from the spec file path."
Copy file name to clipboardExpand all lines: docs/configuration.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,30 @@ overlay:
63
63
64
64
See [Overlays](overlays.md) for detailed documentation and examples.
65
65
66
+
### External File References
67
+
68
+
#### `base-path`
69
+
**Type:** `string` | **Default:** auto-detected from spec file path
70
+
71
+
Directory used to resolve relative `$ref` file references. When using the CLI with a local spec file, this is automatically set to the spec file's parent directory. Set this explicitly when using the library programmatically or when the spec references files relative to a different directory.
72
+
73
+
```yaml
74
+
base-path: ./specs
75
+
```
76
+
77
+
This enables splitting large specs across multiple files:
0 commit comments