We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
number | null
Hey 👋
I think I faced with a possible issue, the source type generated by the swagger-typescript-api package.
swagger-typescript-api
export interface ExampleKey { /** @format int64 */ activeUntil: number | null; allowExportDashboard: boolean; email: string; firstName?: string; isValid: boolean; lastName?: string; }
If the ... | null removed, the mock will be created as expected.
... | null
Online interface will throw the following error: m[a] is not a function
m[a] is not a function
CLI will throw the following error: Unsupported Primitive type 173
Unsupported Primitive type 173
Is it something expected or it is a bug?
The text was updated successfully, but these errors were encountered:
encounter such issues too. one workaround is to replace all | null with empty strings in fileData. mock({files: [filePath, fileData]})
| null
mock({files: [filePath, fileData]})
Sorry, something went wrong.
Quick fix when using the online editor: Select | null. Command D to select them all. Delete.
No branches or pull requests
Hey 👋
I think I faced with a possible issue, the source type generated by the
swagger-typescript-api
package.Steps to reproduce
Failing Example:
If the
... | null
removed, the mock will be created as expected.Errors:
Online interface will throw the following error:
m[a] is not a function
CLI will throw the following error:
Unsupported Primitive type 173
Is it something expected or it is a bug?
The text was updated successfully, but these errors were encountered: