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
The [OpenAPI-Format Playground](https://openapi-format-playground.vercel.app/) is a web-based tool for formattingand sorting OpenAPI documents, powered by the openapi-format CLI.
100
+
The [OpenAPI-Format Playground](https://playground.openapi-format.com/) is a web-based tool for formatting, sorting, filtering, previewing, and comparing OpenAPI documents, powered by the `openapi-format` CLI.
More info about the features and usage, can be found in the [readme](https://github.com/thim81/openapi-format-playground?tab=readme-ov-file#features).
111
+
More info about the playground features and usage can be found on the [website](https://openapi-format.com/).
109
112
110
113
## Installation
111
114
@@ -329,7 +332,7 @@ paths:
329
332
### Filter - tags
330
333
331
334
=> **tags**: Refers to the "tags" field from the "Operation
This command will take the openapi.json and split it into multiple files, stored under the ./openapi-split/ directory.
1384
+
This command will take the openapi.json and split it into multiple files, stored under the ./openapi-split/ directory.
1382
1385
1383
1386
The resulting structure might look like this:
1384
1387
@@ -1400,7 +1403,7 @@ The main openapi.yaml file will contain references to these newly created files
1400
1403
1401
1404
### Bundling the OpenAPI Document
1402
1405
1403
-
The `--no-bundle` option allows you to control whether local and remote $ref references are bundled into the final document.
1406
+
The `--no-bundle` option allows you to control whether local and remote $ref references are bundled into the final document.
1404
1407
1405
1408
By default, all $ref references are dereferenced, resulting in a single, self-contained OpenAPI file. However, in some cases, you might prefer to keep the $ref references intact, especially if you're working with external references or want to maintain a modular structure.
1406
1409
@@ -1537,42 +1540,42 @@ You can either pass the settings inline or reference an external file using the
1537
1540
1538
1541
- **sortSet** / **sortFile**: Sort the fields in the OpenAPI document based on the order defined in the sort settings.
1539
1542
1540
-
- Inline: Pass the sort order directly using sortSet in the config file.
1541
-
- File: Use sortFile to specify the path to a local or remote JSON/YAML file containing custom sorting rules.
1543
+
- Inline: Pass the sort order directly using sortSet in the config file.
1544
+
- File: Use sortFile to specify the path to a local or remote JSON/YAML file containing custom sorting rules.
1542
1545
1543
1546
- **casingSet** / **casingFile**: Define the casing convention for operationId, parameters, properties, etc.
1544
1547
1545
-
- Inline:
1546
-
```json
1547
-
"casingSet": {
1548
-
"operationId": "camelCase",
1549
-
"properties": "PascalCase"
1550
-
}
1551
-
```
1548
+
- Inline:
1549
+
```json
1550
+
"casingSet": {
1551
+
"operationId": "camelCase",
1552
+
"properties": "PascalCase"
1553
+
}
1554
+
```
1552
1555
1553
-
- File: Use casingFile to specify the path to a local or remote JSON/YAML file containing casing rules.
1556
+
- File: Use casingFile to specify the path to a local or remote JSON/YAML file containing casing rules.
1554
1557
1555
1558
- **filterSet** / **filterFile**: Filter out specific tags, paths, or components from the OpenAPI document.
1556
1559
1557
-
- Inline:
1558
-
```json
1559
-
"filterSet": {
1560
-
"tags": ["internal", "beta"]
1561
-
}
1562
-
```
1560
+
- Inline:
1561
+
```json
1562
+
"filterSet": {
1563
+
"tags": ["internal", "beta"]
1564
+
}
1565
+
```
1563
1566
1564
-
- File: Use filterFile to specify the path to a local or remote JSON/YAML file containing filter rules.
1567
+
- File: Use filterFile to specify the path to a local or remote JSON/YAML file containing filter rules.
1565
1568
1566
1569
- **generateSet** / **generateFile**: Automatically generate operationId, summary, and other elements based on predefined templates.
0 commit comments