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
Add `--path` flag to `b2c docs schema` to print the filesystem path to a schema file instead of its content, enabling use with tools like `xmllint` for XML validation.
|`--list`, `-l`| List all available schemas |`false`|
140
+
|`--path`, `-p`| Print the filesystem path to the schema instead of its content |`false`|
140
141
141
142
### Examples
142
143
@@ -152,11 +153,24 @@ b2c docs schema --list
152
153
153
154
# JSON output
154
155
b2c docs schema catalog --json
156
+
157
+
# Get the filesystem path to a schema
158
+
b2c docs schema catalog --path
155
159
```
156
160
157
161
### Output
158
162
159
-
Without `--json`, the command writes schema XML directly to stdout. With `--list`, it prints available schema IDs and a total count.
163
+
Without `--json`, the command writes schema XML directly to stdout. With `--path`, it prints the resolved filesystem path (useful for passing to XML validation tools). With `--list`, it prints available schema IDs and a total count.
164
+
165
+
### Validating XML with xmllint
166
+
167
+
Use the `--path` flag to pass schema paths directly to `xmllint` for XML validation:
0 commit comments