Skip to content

Commit

Permalink
Remove layout context for endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Oct 30, 2024
1 parent c5db32d commit 812ee62
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions src/data/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,3 @@
/acs/systems:
page:
title: Systems

/acs/systems/get:
page:
title: Get an ACS System

/acs/systems/list:
page:
title: List ACS Systems

/acs/systems/list_compatible_credential_manager_acs_systems:
page:
title: List Compatible Credential Manager ACS Systems
9 changes: 0 additions & 9 deletions src/lib/layout-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export interface EndpointLayoutContext {
description: string
title: string
path: string
page: {
title: string
}
request: {
preferredMethod: string
parameters: Array<{
Expand Down Expand Up @@ -57,16 +54,10 @@ export interface EndpointLayoutContext {
export function setEndpointLayoutContext(
file: Partial<EndpointLayoutContext>,
endpoint: Endpoint,
pathMetadata: PathMetadata,
): void {
file.description = endpoint.description
file.title = endpoint.title
file.path = endpoint.path
const page = pathMetadata[endpoint.path]?.page
if (page == null) {
throw new Error(`Missing page metadata for ${endpoint.path}`)
}
file.page = page

file.request = {
preferredMethod: endpoint.request?.preferredMethod ?? '',
Expand Down

0 comments on commit 812ee62

Please sign in to comment.