Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 16 additions & 34 deletions preprocessing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,57 +26,48 @@ interface ApiSpecDefinition {
// Define all your OpenAPI specifications here
let openApiSpecsArray: ApiSpecDefinition[] = [
{
id: "authorization",
specPath: "./specs/authorization/authorization.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/authorization",
// specPathModified is auto-generated if not specified
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
},
},
{
id: "authorization_v2",
specPath: "./specs/authorization/v2/authorization.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/authorization_v2",
// Example of custom modified path:
specPathModified: "./specs-processed/authorization/v2/authorization.openapi.yaml",
id: "Well-Known Configuration",
specPath: "./specs/wellknownconfiguration/wellknown_configuration.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/wellknownconfiguration",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
},
},
{
id: "common",
specPath: "./specs/common/common.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/common",
id: "V1 Authorization",
specPath: "./specs/authorization/authorization.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/authorization/v1",
// specPathModified is auto-generated if not specified
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
},
},
{
id: "entity",
specPath: "./specs/entity/entity.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/entity",
id: "V2 Authorization",
specPath: "./specs/authorization/v2/authorization.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/authorization/v2",
// Example of custom modified path:
specPathModified: "./specs-processed/authorization/v2/authorization.openapi.yaml",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
},
},
{
id: "entityresolution",
id: "V1 Entity Resolution",
specPath: "./specs/entityresolution/entity_resolution.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/entityresolution",
outputDir: "docs/SDK-OpenAPI/entityresolution/v1",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
},
},
{
id: "entityresolution_v2",
id: "V2 Entity Resolution",
specPath: "./specs/entityresolution/v2/entity_resolution.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/entityresolution_v2",
outputDir: "docs/SDK-OpenAPI/entityresolution/v2",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
Expand All @@ -91,15 +82,6 @@ let openApiSpecsArray: ApiSpecDefinition[] = [
categoryLinkSource: "tag",
},
},
{
id: "wellknownconfiguration",
specPath: "./specs/wellknownconfiguration/wellknown_configuration.openapi.yaml",
outputDir: "docs/SDK-OpenAPI/wellknownconfiguration",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
},
},
// Add more entries here for other OpenAPI specs
];

Expand Down