File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ export interface RemoteDescriptorOptions {
5454 * This will be used for internal communication and will not be exposed to the client.
5555 */
5656 serviceAccount ?: ServiceAccountDescriptor ;
57+
58+ /**
59+ * If true, all actions will come with body / response schemas by default.
60+ */
61+ withSchema ?: boolean ;
5762}
5863
5964export interface RemoteDescriptor {
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ export class RemoteDescriptorProvider {
7474 serviceAccount : options . serviceAccount ,
7575 proxy : ! ! options . proxy ,
7676 internal : ! proxy . noInternal ,
77- links : async ( { authorization, withSchema } ) => {
77+ links : async ( opts ) => {
78+ const { authorization } = opts ;
79+ const withSchema = options . withSchema ?? options . withSchema ?? false ;
7880 const response = await this . fetchLinks ( {
7981 service : name ,
8082 url : `${ url } ${ linkPath } ${ withSchema ? "?withSchema=true" : "" } ` ,
You can’t perform that action at this time.
0 commit comments