You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've compiled kiota source and tried to use it
When I use latest pre release version, i dont get it errors
Module '"./errorEscaped"' has no exported member 'createErrorEscapedFromDiscriminatorValue'.
Module '"./errorEscaped"' has no exported member 'serializeErrorEscaped'.
import { createErrorEscapedFromDiscriminatorValue, serializeErrorEscaped, type ErrorEscaped } from './errorEscaped';
import { type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
export function createErrorsResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) {
if(!parseNode) throw new Error("parseNode cannot be undefined");
return deserializeIntoErrorsResponse;
}
export function deserializeIntoErrorsResponse(errorsResponse: ErrorsResponse | undefined = {} as ErrorsResponse) : Record<string, (node: ParseNode) => void> {
return {
"errors": n => { errorsResponse.errors = n.getCollectionOfObjectValues<ErrorEscaped>(createErrorEscapedFromDiscriminatorValue); },
}
}
export interface ErrorsResponse extends ApiError, Parsable {
/**
* The errors property
*/
errors?: ErrorEscaped[];
}
export function serializeErrorsResponse(writer: SerializationWriter, errorsResponse: ErrorsResponse | undefined = {} as ErrorsResponse) : void {
writer.writeCollectionOfObjectValues<ErrorEscaped>("errors", errorsResponse.errors, serializeErrorEscaped);
}
import { type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
export class ErrorEscaped implements Parsable {
/**
* The code property
*/
private _code?: string;
/**
* The message property
*/
private _message?: string;
/**
* Gets the code property value. The code property
* @returns a string
*/
public get code() {
return this._code;
};
/**
* Sets the code property value. The code property
* @param value Value to set for the code property.
*/
public set code(value: string | undefined) {
this._code = value;
};
/**
* Gets the message property value. The message property
* @returns a string
*/
public get message() {
return this._message;
};
/**
* Sets the message property value. The message property
* @param value Value to set for the message property.
*/
public set message(value: string | undefined) {
this._message = value;
};
}
The text was updated successfully, but these errors were encountered:
@illunix thanks for reporting this. @rkodev it looks like we still have race conditions between the interface, file and escaping mechanisms, would you mind having a look at this please?
I've compiled kiota source and tried to use it
When I use latest pre release version, i dont get it errors
Module '"./errorEscaped"' has no exported member 'createErrorEscapedFromDiscriminatorValue'.
Module '"./errorEscaped"' has no exported member 'serializeErrorEscaped'.
The text was updated successfully, but these errors were encountered: