Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion demo/src/specs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const DEFAULT_SPEC = 'specs/cafe/openapi.yaml';
export const DEFAULT_SPEC = 'specs/cafe.yaml';

export type SpecOption = { value: string; label: string };

Expand Down
2 changes: 1 addition & 1 deletion e2e/playwright/ce/pages/auto-init.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body style="margin: 0">
<!-- Zero-JavaScript integration: `autoInit()` runs at module evaluation. -->
<redoc spec-url="/specs/cafe/openapi.yaml"></redoc>
<redoc spec-url="/specs/cafe.yaml"></redoc>
<script type="module" src="/bundles/redoc.standalone.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion e2e/playwright/ce/pages/options-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const params = new URLSearchParams(window.location.search);
const element = document.querySelector('redoc');

element.setAttribute('spec-url', params.get('spec-url') ?? '/specs/cafe/openapi.yaml');
element.setAttribute('spec-url', params.get('spec-url') ?? '/specs/cafe.yaml');
for (const [name, value] of params) {
if (name === 'spec-url') continue;
element.setAttribute(name, value);
Expand Down
2 changes: 1 addition & 1 deletion e2e/playwright/ce/react-host/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {

/** One `?case=` per contract the library promises a React embedder. */

const CAFE = '/specs/cafe/openapi.yaml';
const CAFE = '/specs/cafe.yaml';
const BASE = '/react';
const DEEP_BASE = '/react/docs';

Expand Down
2 changes: 1 addition & 1 deletion e2e/playwright/ce/tests/react-mode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test('shows children until the definition resolves, then replaces them', async (
const held = new Promise<void>((resolve) => {
release = resolve;
});
await page.route('**/specs/cafe/openapi.yaml', async (route) => {
await page.route('**/specs/cafe.yaml', async (route) => {
await held;
await route.continue();
});
Expand Down
2 changes: 1 addition & 1 deletion e2e/playwright/ce/tests/search-smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StandalonePage } from '../page-objects/StandalonePage.js';

// One spec type exercises the click → deep-link → section-visible path end to end; the
// AsyncAPI/GraphQL index builds are covered by engine.ce.test.ts and init-graphql.ce.test.ts.
const SPEC_TYPES = [{ label: 'OpenAPI', specUrl: '/specs/cafe/openapi.yaml', term: 'menu' }];
const SPEC_TYPES = [{ label: 'OpenAPI', specUrl: '/specs/cafe.yaml', term: 'menu' }];

for (const { label, specUrl, term } of SPEC_TYPES) {
test(`indexes a ${label} definition and its hits deep-link into the docs`, async ({ page }) => {
Expand Down
24 changes: 1 addition & 23 deletions playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,13 @@ type SpecEntry = {
label: string;
path: string;
type: ApiSpecType;
options?: Partial<RawApiDocsOptions>;
};

const SPECS: SpecEntry[] = [
{
label: 'Cafe',
path: '/specs/cafe/openapi.yaml',
path: '/specs/cafe.yaml',
type: apiSpecType.OPENAPI,
// Offers every `x-codeSamples` language the demo spec carries (createOrder).
options: {
codeSamples: {
languages: [
'curl',
'JavaScript',
'TypeScript',
'Python',
'Java',
'C#',
'PHP',
'Go',
'Ruby',
'Swift',
'Kotlin',
'C++',
'Objective-C',
].map((lang) => ({ lang, label: lang, key: lang.toLowerCase() })),
},
},
},
{
label: 'Cafe Orders (Kafka)',
Expand Down Expand Up @@ -80,7 +59,6 @@ function getOptions(spec: SpecEntry): RawApiDocsOptions {
showExtensions: true,
sortRequiredPropsFirst: true,
hideSchemaTitles: false,
...(spec.options ?? {}),
};
}

Expand Down
Loading
Loading