Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat): refactor how pagination properties are checked in fern check #4250

Merged
merged 17 commits into from
Aug 10, 2024
4 changes: 4 additions & 0 deletions fern.schema.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,10 @@
"step": {
"type": "string",
"description": "The path to the request property for the page step."
},
"has-next-page": {
"type": "string",
"description": "The path to the response property indicating next page presence."
}
},
"required": ["offset", "results"],
Expand Down
4 changes: 4 additions & 0 deletions fern.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,10 @@
"step": {
"type": "string",
"description": "The path to the request property for the page step."
},
"has-next-page": {
"type": "string",
"description": "The path to the response property indicating next page presence."
}
},
"required": ["offset", "results"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000.deleteMovie",
"isResponseStream": false,
"method": "DELETE",
"playground": undefined,
"slug": "base/path/api-reference/testing/delete-movie",
"title": "Delete Movie",
"type": "endpoint",
Expand All @@ -32,6 +33,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000.getMovie",
"isResponseStream": false,
"method": "GET",
"playground": undefined,
"slug": "base/path/api-reference/testing/get-movie",
"title": "Get Movie",
"type": "endpoint",
Expand All @@ -42,6 +44,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000.testing",
"noindex": undefined,
"overviewPageId": undefined,
"playground": undefined,
"pointsTo": "base/path/api-reference/testing/delete-movie",
"slug": "base/path/api-reference/testing",
"title": "Testing",
Expand All @@ -64,6 +67,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_trailers.createTrailer",
"isResponseStream": false,
"method": "POST",
"playground": undefined,
"slug": "base/path/api-reference/imdb/trailers/create-trailer",
"title": "Create Trailer",
"type": "endpoint",
Expand All @@ -77,6 +81,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_trailers.getTrailer",
"isResponseStream": false,
"method": "GET",
"playground": undefined,
"slug": "base/path/api-reference/imdb/trailers/get-trailer",
"title": "Get Trailer",
"type": "endpoint",
Expand All @@ -90,6 +95,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_trailers.getTrailerForMovie",
"isResponseStream": false,
"method": "GET",
"playground": undefined,
"slug": "base/path/api-reference/imdb/trailers/get-trailer-for-movie",
"title": "Get Trailer For Movie",
"type": "endpoint",
Expand All @@ -103,6 +109,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_trailers.deleteTrailer",
"isResponseStream": false,
"method": "DELETE",
"playground": undefined,
"slug": "base/path/api-reference/imdb/trailers/delete-trailer",
"title": "Delete Trailer",
"type": "endpoint",
Expand All @@ -113,6 +120,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000.subpackage_imdb.subpackage_trailers",
"noindex": undefined,
"overviewPageId": undefined,
"playground": undefined,
"pointsTo": "base/path/api-reference/imdb/trailers/create-trailer",
"slug": "base/path/api-reference/imdb/trailers",
"title": "Trailers",
Expand All @@ -127,6 +135,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_imdb.createMovie",
"isResponseStream": false,
"method": "POST",
"playground": undefined,
"slug": "base/path/api-reference/imdb/create-movie",
"title": "Create Movie",
"type": "endpoint",
Expand All @@ -137,19 +146,21 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000.subpackage_imdb",
"noindex": undefined,
"overviewPageId": undefined,
"playground": undefined,
"pointsTo": "base/path/api-reference/imdb/trailers/create-trailer",
"slug": "base/path/api-reference/imdb",
"title": "Imdb",
"type": "apiPackage",
},
],
"disableLongScrolling": false,
"hidden": undefined,
"hideTitle": false,
"icon": undefined,
"id": "550e8400-e29b-41d4-a716-446655440000",
"noindex": undefined,
"overviewPageId": undefined,
"paginated": false,
"playground": undefined,
"pointsTo": "base/path/api-reference/testing/delete-movie",
"showErrors": false,
"slug": "base/path/api-reference",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_stream.createChatCompletion",
"isResponseStream": false,
"method": "POST",
"playground": undefined,
"slug": "base/path/api-reference/stream/create-chat-completion",
"title": "Create Chat Completion",
"type": "endpoint",
Expand All @@ -34,6 +35,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_stream.createChatCompletion_stream",
"isResponseStream": true,
"method": "POST",
"playground": undefined,
"slug": "base/path/api-reference/stream/create-chat-completion-stream",
"title": "Create Chat Completion",
"type": "endpoint",
Expand All @@ -51,6 +53,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_stream.createCompletion",
"isResponseStream": false,
"method": "POST",
"playground": undefined,
"slug": "base/path/api-reference/stream/create-completion",
"title": "Create Completion",
"type": "endpoint",
Expand All @@ -64,6 +67,7 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:endpoint_stream.createCompletion_stream",
"isResponseStream": true,
"method": "POST",
"playground": undefined,
"slug": "base/path/api-reference/stream/create-completion-stream",
"title": "Create Completion",
"type": "endpoint",
Expand All @@ -76,19 +80,21 @@ exports[`converts to api reference node 1`] = `
"id": "550e8400-e29b-41d4-a716-446655440000:subpackage_stream",
"noindex": undefined,
"overviewPageId": undefined,
"playground": undefined,
"pointsTo": "base/path/api-reference/stream/create-chat-completion",
"slug": "base/path/api-reference/stream",
"title": "Stream",
"type": "apiPackage",
},
],
"disableLongScrolling": false,
"hidden": undefined,
"hideTitle": false,
"icon": undefined,
"id": "550e8400-e29b-41d4-a716-446655440000",
"noindex": undefined,
"overviewPageId": undefined,
"paginated": false,
"playground": undefined,
"pointsTo": "base/path/api-reference/stream/create-chat-completion",
"showErrors": false,
"slug": "base/path/api-reference",
Expand Down
Loading
Loading